Results 1 to 2 of 2

Thread: Hide Qtreewidgetitem

  1. #1
    Join Date
    Jul 2009
    Posts
    20
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Hide Qtreewidgetitem

    Hi,

    I have a Qtreewidget that contains many nested levels of QTreewidgetitems. I am filtering items that contain a specific string and i would like to hide all other items except the matching item and its parent.

    However when i set the parent item's visibility to true, all its children are also set to true. How could i show only a parent and one or few its children items?

    Thankyou

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Hide Qtreewidgetitem

    well, you have to set the visibility on both the parent and its children (and grandchildren and so on)

Similar Threads

  1. Highlighting QTreeWidgetItem
    By rajesh210 in forum Qt Programming
    Replies: 1
    Last Post: 23rd July 2008, 11:51
  2. Hide qtreewidgetitem root
    By altVis in forum Qt Programming
    Replies: 1
    Last Post: 27th March 2008, 11:24
  3. QTreeWidgetItem ?
    By allensr in forum Qt Programming
    Replies: 5
    Last Post: 3rd January 2007, 17:51
  4. QTreeWidgetItem
    By Sarma in forum Qt Programming
    Replies: 1
    Last Post: 6th April 2006, 19:52
  5. QTreeWidgetItem
    By raphaelf in forum Qt Programming
    Replies: 4
    Last Post: 5th March 2006, 15:07

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.