Create an expendable/collapsible list?
-
I would like to create an expendable/collapsible list similar to the one from the picture, taken from the 3D program Maya that uses Qt.
!http://i.imgur.com/n3XtrpE.png?1(Expandeble list)!
-
There's some similarity to QToolBox but I expect you want to allow several open sections at the same time. You should be able to achieve this with a vertical layout with setSizeConstraint(QLayout::SetFixedSize) containing alternating toggle buttons and widgets.
See the Extension Example in Assistant and think of the More...button as one of the bars in your dialog. -
Thanks, looks quite doable. However, I noticed the list bears some resemblance to a QTreeWidget, so I was wondering if you could perhaps do something like putting putting a QWidget inside a QTreeWidget? Would that idea hold some merit, or do you think this approach would be more flexible in the long run?