Widget Box - How is it made?
-
In QT Designer there is the Widget Box, which contains the various elements, organised into categories such as Layouts, Spacers, Buttons, etc...and those titles can be expanded / collapsed.
!http://www.fancyaddress.com/blog/wp-content/uploads/2013/10/2z524cz-e1381702099184-150x150.png(Widget Box)!
a) How is the widget box made? Has somebody created a standalone widget of that provides this functionality?
b) Is there a better way of making a widget, that has a set of "titles" that act like buttons, which expand / collapse a series of listed elements?
-
Hi,
The most simple way to see how it's implemented is to look at Designer's source code.
You might also be interested by QToolBox
Hope it helps