QDesignerFormEditorInterface Class | Qt Widgets Designer Manual (original) (raw)
The QDesignerFormEditorInterface class allows you to access Qt Widgets Designer's various components. More...
Header: | #include |
---|---|
CMake: | find_package(Qt6 REQUIRED COMPONENTS Designer) target_link_libraries(mytarget PRIVATE Qt6::Designer) |
qmake: | QT += designer |
Inherits: | QObject |
Public Functions
Detailed Description
Qt Widgets Designer's current QDesignerFormEditorInterface object holds information about all Qt Widgets Designer's components: The action editor, the object inspector, the property editor, the widget box, and the extension and form window managers. QDesignerFormEditorInterface contains a collection of functions that provides interfaces to all these components. They are typically used to query (and manipulate) the respective component. For example:
auto *objectInspector = formEditor->objectInspector();
auto *manager = formEditor->formWindowManager();
objectInspector->setFormWindow(manager->formWindow(0));
QDesignerFormEditorInterface is not intended to be instantiated directly. A pointer to Qt Widgets Designer's current QDesignerFormEditorInterface object (formEditor
in the example above) is provided by the QDesignerCustomWidgetInterface::initialize() function's parameter. When implementing a custom widget plugin, you must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt Widgets Designer.
QDesignerFormEditorInterface also provides functions that can set the action editor, property editor, object inspector and widget box. These are only useful if you want to provide your own custom components.
If designer is embedded in another program, one could to provide its own settings manager. The manager is used by the components of Qt Widgets Designer to store/retrieve persistent configuration settings. The default manager uses QSettings as the backend.
Finally, QDesignerFormEditorInterface provides the topLevel() function that returns Qt Widgets Designer's top-level widget.
See also QDesignerCustomWidgetInterface.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.