Skip to main content

MultiView

Namespace: DISPLIB  ·  Library: Display Library

#include <disp/multiview.h>

class DISPLIB::MultiView

QMainWindow container hosting an arbitrary number of MultiViewWindow dock widgets.

Inherits QMainWindow purely for the dock infrastructure; named views are added with addWidgetTop / addWidgetBottom and geometry is persisted via QSettings.

Inheritance


Public Methods

MultiView(sSettingsPath, parent, flags)

Constructs an MultiView.


~MultiView()

Destructs an MultiView.


addWidgetTop(pWidget, sName)

Adds a QWidget to the top docking area.

Parameters:

  • pWidget : *QWidget ** The widget to be added.

  • sName : const QString & The window title shown in the QSplitter.

Returns:


addWidgetBottom(pWidget, sName)

Adds a QWidget to the bottom docking area.

Please note that all bottom dock widgets are tabbified by default.

Parameters:

  • pWidget : *QWidget ** The widget to be added.

  • sName : const QString & The window title shown in the QSplitter.

Returns:


saveSettings()

Saves geometry and state of GUI dock widgets that have given a name with setObjectName().


loadSettings()

Restores geometry and state as saved by saveSettings().


Authors of this file