Results 1 to 2 of 2

Thread: QTreeView flexibility

  1. #1
    Join Date
    Feb 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTreeView flexibility

    Hi! I'm creating a small database to keep track of all my programming projects. I want to display all the items in my database using a linear tree (nodes can have multiple children but only one parent). Can I use the QTreeView for this? I've seen that the tree view has tiny icons for folders and files, this is no big deal. Another problem is I've only found tutorials on how to display directories with this itemview. I can't find an example on how to add items manually, or while looping through a text file. Any help?
    Thanks in advance!

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QTreeView flexibility

    If you want items use QTreeWidget. If you want use QTreeView you have to use a proper model or create your own model.

Similar Threads

  1. QTreeView. Qt.4.4.1
    By janEUcitzen in forum Qt Programming
    Replies: 1
    Last Post: 15th November 2008, 08:53
  2. use QTreeView
    By totosugito in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2008, 09:33
  3. QTreeView help
    By bepaald in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2007, 21:22
  4. QTreeView
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 29th May 2007, 08:38
  5. QTreeView
    By npc in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2007, 07:53

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
  •  
Qt is a trademark of The Qt Company.