Results 1 to 5 of 5

Thread: Making QTreeView Items Checkable

  1. #1
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Making QTreeView Items Checkable

    Hi, I'm trying to make a windows explorer-type interface for browsing the computer's filesystem. I found QDirModel and QTreeView to be excellent for this, however I need the ability to make the files and directories checkable, and then I need to be able to refer to what is checked and unchecked. How is something like this approached? Or is it even possible? Thanks, Daniel

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Making QTreeView Items Checkable

    Use the powerful searching functionality, please.

    http://www.qtcentre.org/forum/p-qdir...ostcount7.html
    J-P Nurmi

  3. #3
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Making QTreeView Items Checkable

    Sorry, won't happen again. And thanks for the link, just what I'm looking for...

  4. #4
    Join Date
    Jan 2020
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Making QTreeView Items Checkable

    I know this is a very old post, but by any chance does any one have any example for the same. I am not able to find the link provided above

  5. #5
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Making QTreeView Items Checkable

    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Edit items on QTreeView + QDirModel
    By junior0007 in forum Qt Programming
    Replies: 4
    Last Post: 23rd November 2007, 08:16
  2. QTreeView rows (items) StyleSheet
    By Kostanev in forum Qt Programming
    Replies: 1
    Last Post: 15th September 2007, 11:36
  3. QDirModel+QTreeView and checkable items
    By L.Marvell in forum Qt Programming
    Replies: 7
    Last Post: 11th May 2007, 19:54
  4. Drag & drop items on the same QTreeView
    By wind in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2006, 15:29
  5. How to clear All items on QTreeView ?
    By qintm in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2006, 12:39

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.