PySide6.QtDesigner.QDesignerFormWindowManagerInterface¶
- class QDesignerFormWindowManagerInterface¶
- The - QDesignerFormWindowManagerInterfaceclass allows you to manipulate the collection of form windows in Qt Widgets Designer, and control Qt Widgets Designer’s form editing actions. More…- Synopsis¶- Methods¶- def - __init__()
- def - actionCopy()
- def - actionCut()
- def - actionDelete()
- def - actionLower()
- def - actionPaste()
- def - actionRaise()
- def - actionRedo()
- def - actionUndo()
 - Virtual methods¶- def - action()
- def - actionGroup()
- def - addFormWindow()
- def - core()
- def - dragItems()
- def - formWindow()
- def - showPreview()
 - Signals¶- Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- Warning - This section contains snippets that were automatically translated from C++ to Python and may contain errors. - QDesignerFormWindowManagerInterfaceis not intended to be instantiated directly. Qt Widgets Designer uses the form window manager to control the various form windows in its workspace. You can retrieve an interface to Qt Widgets Designer’s form window manager using the- formWindowManager()function. For example:- manager = formEditor.formWindowManager() formWindow = manager.formWindow(0) manager.setActiveFormWindow(formWindow) - When implementing a custom widget plugin, a pointer to Qt Widgets Designer’s current - QDesignerFormEditorInterfaceobject (- formEditorin the example above) is provided by the- initialize()function’s parameter. You must subclass the- QDesignerCustomWidgetInterfaceto expose your plugin to Qt Widgets Designer.- The form window manager interface provides the - createFormWindow()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- addFormWindow()slot. It also provides the- formWindowCount()function returning the number of form windows currently under the manager’s control, the- formWindow()function returning the form window associated with a given index, and the- activeFormWindow()function returning the currently selected form window. The- removeFormWindow()slot allows you to reduce the number of form windows the manager must maintain, and the- setActiveFormWindow()slot allows you to change the form window focus in Qt Widgets Designer’s workspace.- In addition, - QDesignerFormWindowManagerInterfacecontains a collection of functions that enables you to intervene and control Qt Widgets 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 Action¶
- Specifies an action of Qt Widgets 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 
 - class ActionGroup¶
- Specifies an action group of Qt Widgets Designer. - Constant - Description - QDesignerFormWindowManagerInterface.StyledPreviewActionGroup - Action group containing styled preview actions - See also 
 - Constructs an interface with the given - parentfor the form window manager.- Returns the action specified by the enumeration value - action.- Obsoletes the action accessors of Qt 4.X. - Allows you to intervene and control Qt Widgets Designer’s “adjust size” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “break layout” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “copy” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “cut” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “delete” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “form layout” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control a request for grid layout for a form window in Qt Widgets Designer’s workspace. The function returns the original action. - Use - action()instead.- See also - abstract actionGroup(actionGroup)¶
- Parameters:
- actionGroup – - ActionGroup
- Return type:
 
 - Returns the action group specified by the enumeration value - actionGroup.- Allows you to intervene and control a request for horizontal layout for a form window in Qt Widgets Designer’s workspace. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control the action of lowering a form window in Qt Widgets Designer’s workspace. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “paste” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control the action of raising of a form window in Qt Widgets Designer’s workspace. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “redo” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “select all” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “simplify layout” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “split horizontal” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “split vertical” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control Qt Widgets Designer’s “undo” action. The function returns the original action. - Use - action()instead.- See also - Allows you to intervene and control a request for vertical layout for a form window in Qt Widgets Designer’s workspace. The function returns the original action. - Use - action()instead.- See also - abstract activeFormWindow()¶
- Return type:
 
 - Returns the currently active form window in Qt Widgets Designer’s workspace. - See also - activeFormWindowChanged(formWindow)¶
- Parameters:
- formWindow – - QDesignerFormWindowInterface
 
 - This signal is emitted when the contents of the currently active form window in Qt Widgets Designer’s workspace changed. A pointer to the currently active - formWindowis passed as an argument.- See also - abstract addFormWindow(formWindow)¶
- Parameters:
- formWindow – - QDesignerFormWindowInterface
 
 - Adds the given - formWindowto the collection of windows that Qt Widgets Designer’s form window manager maintains.- See also - abstract closeAllPreviews()¶
 - Close all currently open previews. - See also - abstract core()¶
- Return type:
 
 - Returns a pointer to Qt Widgets Designer’s current - QDesignerFormEditorInterfaceobject.- abstract createFormWindow([parentWidget=None[, flags=Qt.WindowFlags()]])¶
- Parameters:
- parentWidget – - QWidget
- flags – Combination of - WindowType
 
- Return type:
 
 - Creates a form window with the given - parentand the given window- flags.- See also - Creates a pixmap representing the preview of the currently active form. - abstract dragItems(item_list)¶
- Parameters:
- item_list – .list of QDesignerDnDItemInterface 
 
 - abstract formWindow(index)¶
- Parameters:
- index – int 
- Return type:
 
 - Returns the form window at the given - index.- See also - formWindowAdded(formWindow)¶
- Parameters:
- formWindow – - QDesignerFormWindowInterface
 
 - This signal is emitted when a new form window is added to the collection of windows that Qt Widgets Designer’s form window manager maintains. A pointer to the new - formWindowis passed as an argument.- See also - abstract formWindowCount()¶
- Return type:
- int 
 
 - Returns the number of form windows maintained by Qt Widgets Designer’s form window manager. - formWindowRemoved(formWindow)¶
- Parameters:
- formWindow – - QDesignerFormWindowInterface
 
 - This signal is emitted when a form window is removed from the collection of windows that Qt Widgets Designer’s form window manager maintains. A pointer to the removed - formWindowis passed as an argument.- See also - formWindowSettingsChanged(fw)¶
- Parameters:
 
 - This signal is emitted when the settings of the form window change. It can be used to update window titles, etc. accordingly. A pointer to the - formWindowis passed as an argument.- See also - abstract removeFormWindow(formWindow)¶
- Parameters:
- formWindow – - QDesignerFormWindowInterface
 
 - Removes the given - formWindowfrom the collection of windows that Qt Widgets Designer’s form window manager maintains.- See also - abstract setActiveFormWindow(formWindow)¶
- Parameters:
- formWindow – - QDesignerFormWindowInterface
 
 - Sets the given - formWindowto be the currently active form window in Qt Widgets Designer’s workspace.- abstract showPluginDialog()¶
 - Opens a dialog showing the plugins loaded by Qt Widgets Designer’s and its plugin load failures. - abstract showPreview()¶
 - Show a preview of the current form using the default parameters. - See also