Is there a preferred way to detect when all of a QTreeWidgetItem
's children are marked as hidden? Currently, I'm iterating over all of them every time any of them are hidden.
views:
35answers:
1
Q:
Is there a way to detect when all child items within a QTreeWidgetItem have been marked 'hidden'?
A:
Keep a counter of hidden items and change the value of the counter if an item changed its state of hidden-ness. So each time you use the information you do not iterate over all items!
Narek
2010-07-26 19:00:52