
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQDesignerFormEditorInterface class allows you to access Qt Designer's various components.More...
| Header: | #include <QDesignerFormEditorInterface> |
| Inherits: | QObject |
| QDesignerFormEditorInterface(QObject * parent = 0) | |
| virtual | ~QDesignerFormEditorInterface() |
| QDesignerActionEditorInterface * | actionEditor() const |
| QExtensionManager * | extensionManager() const |
| QDesignerFormWindowManagerInterface * | formWindowManager() const |
| QDesignerObjectInspectorInterface * | objectInspector() const |
| QDesignerPropertyEditorInterface * | propertyEditor() const |
| void | setActionEditor(QDesignerActionEditorInterface * actionEditor) |
| void | setObjectInspector(QDesignerObjectInspectorInterface * objectInspector) |
| void | setPropertyEditor(QDesignerPropertyEditorInterface * propertyEditor) |
| void | setWidgetBox(QDesignerWidgetBoxInterface * widgetBox) |
| QWidget * | topLevel() const |
| QDesignerWidgetBoxInterface * | widgetBox() const |
TheQDesignerFormEditorInterface class allows you to access Qt Designer's various components.
Qt Designer's currentQDesignerFormEditorInterface object holds information about allQt 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:
QDesignerObjectInspectorInterface*objectInspector=0; objectInspector= formEditor->objectInspector();QDesignerFormWindowManagerInterface*manager=0; manager= formEditor->formWindowManager(); objectInspector->setFormWindow(manager->formWindow(0));
QDesignerFormEditorInterface is not intended to be instantiated directly. A pointer toQt Designer's currentQDesignerFormEditorInterface object (formEditor in the example above) is provided by theQDesignerCustomWidgetInterface::initialize() function's parameter. When implementing a custom widget plugin, you must subclass theQDesignerCustomWidgetInterface to expose your plugin toQt 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 ofQt Designer to store/retrieve persistent configuration settings. The default manager usesQSettings as the backend.
Finally,QDesignerFormEditorInterface provides thetopLevel() function that returnsQt Designer's top-level widget.
See alsoQDesignerCustomWidgetInterface.
Constructs aQDesignerFormEditorInterface object with the givenparent.
[virtual]QDesignerFormEditorInterface::~QDesignerFormEditorInterface()Destroys theQDesignerFormEditorInterface object.
Returns an interface toQt Designer's action editor.
See alsosetActionEditor().
Returns an interface toQt Designer's extension manager.
Returns an interface toQt Designer's form window manager.
Returns an interface toQt Designer's object inspector.
See alsosetObjectInspector().
Returns an interface toQt Designer's property editor.
See alsosetPropertyEditor().
SetsQt Designer's action editor to be the specifiedactionEditor.
See alsoactionEditor().
SetsQt Designer's object inspector to be the specifiedobjectInspector.
See alsoobjectInspector().
SetsQt Designer's property editor to be the specifiedpropertyEditor.
See alsopropertyEditor().
SetsQt Designer's widget box to be the specifiedwidgetBox.
See alsowidgetBox().
ReturnsQt Designer's top-level widget.
Returns an interface toQt Designer's widget box.
See alsosetWidgetBox().
© 2016 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 theGNU 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.