QDesignerFormWindowManagerInterface Class▲
-
Header: QDesignerFormWindowManagerInterface
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
-
qmake: QT += designer
-
Inherits: QObject
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 QDesignerFormEditorInterface::formWindowManager() function. For example:
auto
*
manager =
formEditor-&
gt;formWindowManager();
auto
*
formWindow =
manager-&
gt;formWindow(0
);
manager-&
gt;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 QDesignerCustomWidgetInterface::initialize() function's parameter. You must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt 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 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.
See Also▲
Member Type Documentation▲
[since 5.0] enum QDesignerFormWindowManagerInterface::Action▲
Specifies an action of Qt Designer.
Constant |
Value |
Description |
---|---|---|
QDesignerFormWindowManagerInterface::CutAction |
100 |
Clipboard Cut |
QDesignerFormWindowManagerInterface::CopyAction |
101 |
Clipboard Copy |
QDesignerFormWindowManagerInterface::PasteAction |
102 |
Clipboard Paste |
QDesignerFormWindowManagerInterface::DeleteAction |
103 |
Clipboard Delete |
QDesignerFormWindowManagerInterface::SelectAllAction |
104 |
Select All |
QDesignerFormWindowManagerInterface::LowerAction |
200 |
Lower current widget |
QDesignerFormWindowManagerInterface::RaiseAction |
201 |
Raise current widget |
QDesignerFormWindowManagerInterface::UndoAction |
300 |
Undo |
QDesignerFormWindowManagerInterface::RedoAction |
301 |
Redo |
QDesignerFormWindowManagerInterface::HorizontalLayoutAction |
400 |
Lay out using QHBoxLayout |
QDesignerFormWindowManagerInterface::VerticalLayoutAction |
401 |
Lay out using QVBoxLayout |
QDesignerFormWindowManagerInterface::SplitHorizontalAction |
402 |
Lay out in horizontal QSplitter |
QDesignerFormWindowManagerInterface::SplitVerticalAction |
403 |
Lay out in vertical QSplitter |
QDesignerFormWindowManagerInterface::GridLayoutAction |
404 |
Lay out using QGridLayout |
QDesignerFormWindowManagerInterface::FormLayoutAction |
405 |
Lay out using QFormLayout |
QDesignerFormWindowManagerInterface::BreakLayoutAction |
406 |
Break existing layout |
QDesignerFormWindowManagerInterface::AdjustSizeAction |
407 |
Adjust size |
QDesignerFormWindowManagerInterface::SimplifyLayoutAction |
408 |
Simplify QGridLayout or QFormLayout |
QDesignerFormWindowManagerInterface::DefaultPreviewAction |
500 |
Create a preview in default style |
QDesignerFormWindowManagerInterface::FormWindowSettingsDialogAction |
600 |
Show dialog with form settings |
This enum was introduced or modified in Qt 5.0.
See Also▲
See also action()
[since 5.0] enum QDesignerFormWindowManagerInterface::ActionGroup▲
Specifies an action group of Qt Designer.
Constant |
Value |
Description |
---|---|---|
QDesignerFormWindowManagerInterface::StyledPreviewActionGroup |
100 |
Action group containing styled preview actions |
This enum was introduced or modified in Qt 5.0.
See Also▲
See also actionGroup()
Member Function Documentation▲
[explicit] QDesignerFormWindowManagerInterface::QDesignerFormWindowManagerInterface(QObject *parent = nullptr)▲
Constructs an interface with the given parent for the form window manager.
[virtual] QDesignerFormWindowManagerInterface::~QDesignerFormWindowManagerInterface()▲
Destroys the interface for the form window manager.
[pure virtual, since 5.0] QAction *QDesignerFormWindowManagerInterface::action(QDesignerFormWindowManagerInterface::Action action) const▲
Returns the action specified by the enumeration value action.
Obsoletes the action accessors of Qt 4.X.
This function was introduced in Qt 5.0.
[pure virtual, since 5.0] QActionGroup *QDesignerFormWindowManagerInterface::actionGroup(QDesignerFormWindowManagerInterface::ActionGroup actionGroup) const▲
Returns the action group specified by the enumeration value actionGroup.
This function was introduced in Qt 5.0.
[pure virtual] QDesignerFormWindowInterface *QDesignerFormWindowManagerInterface::activeFormWindow() const▲
Returns the currently active form window in Qt Designer's workspace.
See Also▲
See also setActiveFormWindow(), removeFormWindow()
void QDesignerFormWindowManagerInterface::activeFormWindowChanged(QDesignerFormWindowInterface *formWindow)▲
This signal is emitted when the contents of the currently active form window in Qt Designer's workspace changed. A pointer to the currently active formWindow is passed as an argument.
See Also▲
See also activeFormWindow()
[pure virtual] void QDesignerFormWindowManagerInterface::addFormWindow(QDesignerFormWindowInterface *formWindow)▲
Adds the given formWindow to the collection of windows that Qt Designer's form window manager maintains.
See Also▲
See also formWindowAdded()
[pure virtual, since 5.0] void QDesignerFormWindowManagerInterface::closeAllPreviews()▲
Close all currently open previews.
This function was introduced in Qt 5.0.
See Also▲
See also showPreview()
[pure virtual] QDesignerFormEditorInterface *QDesignerFormWindowManagerInterface::core() const▲
Returns a pointer to Qt Designer's current QDesignerFormEditorInterface object.
[pure virtual] QDesignerFormWindowInterface *QDesignerFormWindowManagerInterface::createFormWindow(QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags())▲
Creates a form window with the given parent and the given window flags.
See Also▲
See also addFormWindow()
[pure virtual] QPixmap QDesignerFormWindowManagerInterface::createPreviewPixmap() const▲
Creates a pixmap representing the preview of the currently active form.
[pure virtual] QDesignerFormWindowInterface *QDesignerFormWindowManagerInterface::formWindow(int index) const▲
Returns the form window at the given index.
See Also▲
See also setActiveFormWindow(), removeFormWindow()
void QDesignerFormWindowManagerInterface::formWindowAdded(QDesignerFormWindowInterface *formWindow)▲
This signal is emitted when a new form window is added to the collection of windows that Qt Designer's form window manager maintains. A pointer to the new formWindow is passed as an argument.
See Also▲
See also addFormWindow(), setActiveFormWindow()
[pure virtual] int QDesignerFormWindowManagerInterface::formWindowCount() const▲
Returns the number of form windows maintained by Qt Designer's form window manager.
void QDesignerFormWindowManagerInterface::formWindowRemoved(QDesignerFormWindowInterface *formWindow)▲
This signal is emitted when a form window is removed from the collection of windows that Qt Designer's form window manager maintains. A pointer to the removed formWindow is passed as an argument.
See Also▲
See also removeFormWindow()
void QDesignerFormWindowManagerInterface::formWindowSettingsChanged(QDesignerFormWindowInterface *formWindow)▲
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 formWindow is passed as an argument.
See Also▲
See also FormWindowSettingsDialogAction
[pure virtual] void QDesignerFormWindowManagerInterface::removeFormWindow(QDesignerFormWindowInterface *formWindow)▲
Removes the given formWindow from the collection of windows that Qt Designer's form window manager maintains.
See Also▲
See also formWindow(), formWindowRemoved()
[pure virtual] void QDesignerFormWindowManagerInterface::setActiveFormWindow(QDesignerFormWindowInterface *formWindow)▲
Sets the given formWindow to be the currently active form window in Qt Designer's workspace.
See Also▲
See also activeFormWindow(), activeFormWindowChanged()
[pure virtual, since 5.0] void QDesignerFormWindowManagerInterface::showPluginDialog()▲
Opens a dialog showing the plugins loaded by Qt Designer's and its plugin load failures.
This function was introduced in Qt 5.0.
[pure virtual, since 5.0] void QDesignerFormWindowManagerInterface::showPreview()▲
Show a preview of the current form using the default parameters.
This function was introduced in Qt 5.0.
See Also▲
See also closeAllPreviews()
Obsolete Members for QDesignerFormWindowManagerInterface▲
The following members of class QDesignerFormWindowManagerInterface are deprecated. We strongly advise against using them in new code.
Obsolete Member Function Documentation▲
QAction *QDesignerFormWindowManagerInterface::actionAdjustSize() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "adjust size" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionBreakLayout() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "break layout" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionCopy() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "copy" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionCut() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "cut" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionDelete() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "delete" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionFormLayout() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "form layout" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionGridLayout() const▲
This function is deprecated. We strongly advise against using it in new code.
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 action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionHorizontalLayout() const▲
This function is deprecated. We strongly advise against using it in new code.
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 action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionLower() const▲
This function is deprecated. We strongly advise against using it in new code.
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 action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionPaste() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "paste" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionRaise() const▲
This function is deprecated. We strongly advise against using it in new code.
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 action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionRedo() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "redo" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionSelectAll() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "select all" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionSimplifyLayout() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "simplify layout" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionSplitHorizontal() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "split horizontal" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionSplitVertical() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "split vertical" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction
QAction *QDesignerFormWindowManagerInterface::actionUndo() const▲
This function is deprecated. We strongly advise against using it in new code.
Allows you to intervene and control Qt Designer's "undo" action. The function returns the original action.
Use action() instead.
See Also▲
See also QAction