[PyQt] Question on QTreeView, interactive expanding/collapsing

Knacktus knacktus at googlemail.com
Wed Apr 20 05:40:47 BST 2011

Am 19.04.2011 23:29, schrieb Zoltan Szalai:
> The "*" key expands all children but you can easily implement your own
> expand / collapse subtree functionality.

Wow, I didn't know about that! But Qt needs a method to expand all 
subchildren recursively. Why is this method not available? Or is it?

Background story:

I've needed an expand_all_below action. I've implemented this similiar 
to what Paul suggested (a bit more rookie-like with recursion), but 
wasn't so happy with the performance on very large trees. So my hope is 
that the method used by Qt internaly must be a faster.

More information about the PyQt mailing list