Does anyone know if it's possible the flatten a QTreeView/QTreeWidget while still being able to expand child items.
What the default is:
- A
-> A1
-> A2
- B
-> B2
+ C
-
is expanded and +
is collapsed
What I would like:
- A
A1
A2
- B
B2
+ C
all collapsed
+ A
+ B
+ C
A, B, C
are the root items.
MyTree -> setIndentation (0) ;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With