moduleSaveState()

Saves the current state of the mainmodules toolbars and dockwidgets. See moduleRestoreState() to reapply the state.

Synopsis

blob moduleSaveState();

Parameters

-

Return value

The function returns the state in the blob. In case of error, an empty blob is returned.

Error

Illegal context.

Description

The function saves the current state of this mainwindow's toolbars and dockwidgets. However, this does not include the window size.

The mainwindow is either a Module window or a script editor window. The function can only be used in the context where there is a main window, e.g. not in an embedded module. (This is the same rule that applies to moduleAddDockModule() )

Assignment

Miscellaneous functions

Availability

UI