Unsolved Expand/Collapse Fature of Outlook in QtreeWidet
-
I have a QtreeWidget .I want to impliment a expand colllapse feature of Outlook Mail box in my QtreeWidet .
The example snapshots are as
https://ibb.co/kny3Pb
https://ibb.co/fC4cjbNeed some guidance
-
Hi
there is
treeWidget->expandAll();
treeWidget->collapseAll();to do just that :)
-
You forgot to mention a piece of fundamental information, you are using QSplitter.
- you have to set the first section collapsible: http://doc.qt.io/qt-5/qsplitter.html#setCollapsible
- use
QSplitter::sizes()
andQSplitter::setSizes()
to set the size of the collapsed part to 0 - Optional: display a tabbar as shown in the screenshot