How to add a property manager or a command toolbar in Qt?
-
!http://help.solidworks.com/2013/English/SolidWorks/sldworks/aha1306857800020.image!
Are there any functions related to the property manager and command manager features like in the Solidworks U.I. For my project I have been trying to make a UI like Solidworks and these are the only functions I don't know of. Are there anything similar for Qt? In general, what are functions that will lead to a features like in the image shown?
-
Hi,
From a quick glance, you could mimic the Property Manager with a QTabWidget containing a QTreeView/QTreeWidget.
The Command Manager looks like a row of QToolButton objects.
[quote]Are there anything similar for Qt? In general, what are functions that will lead to a features like in the image shown?[/quote]I recommend browsing the "list of available widgets":http://qt-project.org/doc/qt-5/widget-classes.html
-
Thanks for your help! Just another follow up question. Can the QToolWidgets be linked to a specific tab so if I click on one tab and if I click on another they bring up different buttons. Also in the property manager using the tab widgets can I add commands in the tree widgets?
-
You're welcome :)
Answers: Yes, and yes. You'll need to write custom C++ code to do that, of course!
-
Last follow up question. How do I set an icon to each feature like in the commands in the photo and is it possible to add a widget to a widget? Like can I make a Tab widget and add a table widget under it? Thanks in advance
-
[quote]How do I set an icon to each feature like in the commands in the photo[/quote]I recommend reading Qt's documentation. It is very comprehensive.
Start with QToolButton::setIcon().
[quote]is it possible to add a widget to a widget? Like can I make a Tab widget and add a table widget under it?[/quote]Yes. See "Layout Management":http://qt-project.org/doc/qt-5/layout.html