Avogadro::QtGui::MultiViewWidget#
-
class MultiViewWidget : public QWidget#
A widget that contains other views, taking on responsibility for defining the active view, the layout of the subviews and ownership of the widgets.
- Author
Marcus D. Hanwell
Public Functions
-
explicit MultiViewWidget(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags())#
-
~MultiViewWidget() override#
-
void addWidget(QWidget *widget)#
-
QWidget *activeWidget()#
Get the currently active widget.
- Returns:
The active widget.
-
void setActiveWidget(QWidget *widget)#
-
inline void setFactory(ViewFactory *factory)#
-
inline void setDefaultView(const QString &viewName)#
Signals
-
void activeWidgetChanged(QWidget *widget)#