QDesignerFormWindowManagerInterface

The QDesignerFormWindowManagerInterface class allows you to manipulate the collection of form windows in Qt Designer, and control Qt Designer’s form editing actions. More

Inheritance diagram of PySide6.QtDesigner.QDesignerFormWindowManagerInterface

Synopsis

Functions

Virtual functions

Detailed Description

QDesignerFormWindowManagerInterface is not intended to be instantiated directly. Qt Designer uses the form window manager to control the various form windows in its workspace. You can retrieve an interface to Qt Designer’s form window manager using the formWindowManager() function. For example:

QDesignerFormWindowManagerInterface *manager = 0;
QDesignerFormWindowInterface *formWindow = 0;

manager = formEditor->formWindowManager();
formWindow = manager->formWindow(0);

manager->setActiveFormWindow(formWindow);

When implementing a custom widget plugin, a pointer to Qt Designer’s current QDesignerFormEditorInterface object (formEditor in the example above) is provided by the function’s parameter. You must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt Designer.

The form window manager interface provides the function that enables you to create a new form window which you can add to the collection of form windows that the manager maintains, using the slot. It also provides the function returning the number of form windows currently under the manager’s control, the function returning the form window associated with a given index, and the function returning the currently selected form window. The slot allows you to reduce the number of form windows the manager must maintain, and the slot allows you to change the form window focus in Qt Designer’s workspace.

In addition, QDesignerFormWindowManagerInterface contains a collection of functions that enables you to intervene and control Qt Designer’s form editing actions. All these functions return the original action, making it possible to propagate the function further after intervention.

Finally, the interface provides three signals which are emitted when a form window is added, when the currently selected form window changes, or when a form window is removed, respectively. All the signals carry the form window in question as their parameter.

class PySide6.QtDesigner.QDesignerFormWindowManagerInterface([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs an interface with the given parent for the form window manager.

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.Action

Specifies an action of Qt Designer.

Constant

Description

QDesignerFormWindowManagerInterface.CutAction

Clipboard Cut

QDesignerFormWindowManagerInterface.CopyAction

Clipboard Copy

QDesignerFormWindowManagerInterface.PasteAction

Clipboard Paste

QDesignerFormWindowManagerInterface.DeleteAction

Clipboard Delete

QDesignerFormWindowManagerInterface.SelectAllAction

Select All

QDesignerFormWindowManagerInterface.LowerAction

Lower current widget

QDesignerFormWindowManagerInterface.RaiseAction

Raise current widget

QDesignerFormWindowManagerInterface.UndoAction

Undo

QDesignerFormWindowManagerInterface.RedoAction

Redo

QDesignerFormWindowManagerInterface.HorizontalLayoutAction

Lay out using QHBoxLayout

QDesignerFormWindowManagerInterface.VerticalLayoutAction

Lay out using QVBoxLayout

QDesignerFormWindowManagerInterface.SplitHorizontalAction

Lay out in horizontal QSplitter

QDesignerFormWindowManagerInterface.SplitVerticalAction

Lay out in vertical QSplitter

QDesignerFormWindowManagerInterface.GridLayoutAction

Lay out using QGridLayout

QDesignerFormWindowManagerInterface.FormLayoutAction

Lay out using QFormLayout

QDesignerFormWindowManagerInterface.BreakLayoutAction

Break existing layout

QDesignerFormWindowManagerInterface.AdjustSizeAction

Adjust size

QDesignerFormWindowManagerInterface.SimplifyLayoutAction

Simplify QGridLayout or QFormLayout

QDesignerFormWindowManagerInterface.DefaultPreviewAction

Create a preview in default style

QDesignerFormWindowManagerInterface.FormWindowSettingsDialogAction

Show dialog with form settings

See also

action()

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.ActionGroup

Specifies an action group of Qt Designer.

Constant

Description

QDesignerFormWindowManagerInterface.StyledPreviewActionGroup

Action group containing styled preview actions

See also

actionGroup()

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.action(action)
Parameters

actionAction

Return type

PySide6.QtGui.QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionAdjustSize()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “adjust size” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionBreakLayout()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “break layout” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionCopy()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “copy” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionCut()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “cut” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionDelete()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “delete” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionFormLayout()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “form layout” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionGridLayout()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control a request for grid layout for a form window in Qt Designer’s workspace. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionGroup(actionGroup)
Parameters

actionGroupActionGroup

Return type

PySide6.QtGui.QActionGroup

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionHorizontalLayout()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control a request for horizontal layout for a form window in Qt Designer’s workspace. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionLower()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control the action of lowering a form window in Qt Designer’s workspace. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionPaste()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “paste” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionRaise()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control the action of raising of a form window in Qt Designer’s workspace. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionRedo()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “redo” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionSelectAll()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “select all” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionSimplifyLayout()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “simplify layout” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionSplitHorizontal()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “split horizontal” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionSplitVertical()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “split vertical” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionUndo()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control Qt Designer’s “undo” action. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.actionVerticalLayout()
Return type

PySide6.QtGui.QAction

Allows you to intervene and control a request for vertical layout for a form window in Qt Designer’s workspace. The function returns the original action.

Use instead.

See also

QAction

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.activeFormWindow()
Return type

PySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.activeFormWindowChanged(formWindow)
Parameters

formWindowPySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.addFormWindow(formWindow)
Parameters

formWindowPySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.closeAllPreviews()
PySide6.QtDesigner.QDesignerFormWindowManagerInterface.core()
Return type

PySide6.QtDesigner.QDesignerFormEditorInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.createFormWindow([parentWidget=None[, flags=Qt.WindowFlags()]])
Parameters
Return type

PySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.createPreviewPixmap()
Return type

PySide6.QtGui.QPixmap

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.dragItems(item_list)
Parameters

item_list

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.formWindow(index)
Parameters

index – int

Return type

PySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.formWindowAdded(formWindow)
Parameters

formWindowPySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.formWindowCount()
Return type

int

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.formWindowRemoved(formWindow)
Parameters

formWindowPySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.formWindowSettingsChanged(fw)
Parameters

fwPySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.removeFormWindow(formWindow)
Parameters

formWindowPySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.setActiveFormWindow(formWindow)
Parameters

formWindowPySide6.QtDesigner.QDesignerFormWindowInterface

PySide6.QtDesigner.QDesignerFormWindowManagerInterface.showPluginDialog()
PySide6.QtDesigner.QDesignerFormWindowManagerInterface.showPreview()