PDA

View Full Version : Hide Qtreewidgetitem



qtuser20
22nd January 2010, 18:01
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

caduel
23rd January 2010, 08:45
well, you have to set the visibility on both the parent and its children (and grandchildren and so on)