Results 1 to 3 of 3

Thread: QTreeWidget Infinity Child items

  1. #1
    Join Date
    Jan 2007
    Posts
    201
    Thanks
    22
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QTreeWidget Infinity Child items

    Dear All

    I got a problem.

    Form a SQL query I bring a QTreeWidget. But for some of the items I have no child items or some of the items I have its child. Some of them I have child's child. Some of them Child's child's childs or more.

    is the a good solution to show them?

  2. #2
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QTreeWidget Infinity Child items

    Hi,

    can you provide a more details regarding you situation?
    The SQL query extract a flat list of record and so, how can you build a tree structure from your data?

    A big improvement can be the use of model/view programming in order to speed up the display of relevant data and, if necessary, loads from the database the childs if needed.

    Bye

    Alessandro

  3. #3
    Join Date
    May 2009
    Posts
    28
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTreeWidget Infinity Child items

    you have data from database , so it's better to use model/view !

Similar Threads

  1. QTreeWidget child index
    By merlvingian in forum Newbie
    Replies: 3
    Last Post: 9th July 2015, 04:40
  2. Replies: 5
    Last Post: 17th February 2009, 04:35
  3. (PyQt) moving items within a QTreeWidget
    By calireno in forum Newbie
    Replies: 0
    Last Post: 12th November 2008, 03:33
  4. amount of items in QTreeWidget
    By supergillis in forum Qt Programming
    Replies: 4
    Last Post: 1st August 2008, 22:38
  5. Removing items properly from qtreewidget item
    By Djony in forum Qt Programming
    Replies: 6
    Last Post: 21st November 2006, 12:20

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.