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.
Asked
Active
Viewed 318 times
1

moswald
- 11,491
- 7
- 52
- 78
1 Answers
0
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
- 38,779
- 79
- 233
- 389
-
I don't know if this solved my problem, but it sounds reasonable! – moswald Nov 28 '17 at 22:54