BlendSplitter
3.0.0
A Blender-like Qt Widget management library
|
A menu bar which is always found on the bottom of SwitchingWidget. More...
#include <SwitchingBar.hpp>
Public Member Functions | |
void | addMenu (QMenu *menu) |
Add a QMenu. More... | |
void | addWidget (QWidget *widget) |
Add a QWidget. More... | |
A menu bar which is always found on the bottom of SwitchingWidget.
This menu bar is similar to the built-in QMenuBar, but can also contain plain QWidgets. The first item on the left is always a combo box for selecting which widget should be displayed in the SwitchingWidget.
Definition at line 20 of file SwitchingBar.hpp.
void SwitchingBar::addMenu | ( | QMenu * | menu | ) |
Add a QMenu.
This function adds a QMenu to the very right of the SwitchingBar. The menu is wrapped in an invisible QMenuBar.
menu | A pointer to the QMenu to be added |
void SwitchingBar::addWidget | ( | QWidget * | widget | ) |
Add a QWidget.
This function adds a QWidget to the very right of the SwitchingBar. The widget is placed in a QHBoxLayout.
widget | A pointer to the QWidget to be added |