QDesignerFormEditorInterface Class
The QDesignerFormEditorInterface class allows you to access Qt Designer's various components. 更多...
头文件: | #include <QDesignerFormEditorInterface> |
qmake: | QT += designer |
基类: | QObject |
公有函数
QDesignerFormEditorInterface(QObject *parent = Q_NULLPTR) | |
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 |
- 32 个公有函数继承自 QObject
其他继承的成员
- 1 个属性继承自 QObject
- 1 个公有槽函数继承自 QObject
- 2 个信号继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QDesignerFormEditorInterface class allows you to access Qt Designer's various components.
Qt Designer's current QDesignerFormEditorInterface object holds information about all Qt 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 to Qt 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 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 Designer to store/retrieve persistent configuration settings. The default manager uses QSettings as the backend.
Finally, QDesignerFormEditorInterface provides the topLevel() function that returns Qt Designer's top-level widget.
参见 QDesignerCustomWidgetInterface.
成员函数
QDesignerFormEditorInterface::QDesignerFormEditorInterface(QObject *parent = Q_NULLPTR)
Constructs a QDesignerFormEditorInterface object with the given parent.
[virtual]
QDesignerFormEditorInterface::~QDesignerFormEditorInterface()
Destroys the QDesignerFormEditorInterface object.
QDesignerActionEditorInterface *QDesignerFormEditorInterface::actionEditor() const
Returns an interface to Qt Designer's action editor.
参见 setActionEditor().
QExtensionManager *QDesignerFormEditorInterface::extensionManager() const
Returns an interface to Qt Designer's extension manager.
QDesignerFormWindowManagerInterface *QDesignerFormEditorInterface::formWindowManager() const
Returns an interface to Qt Designer's form window manager.
QDesignerObjectInspectorInterface *QDesignerFormEditorInterface::objectInspector() const
Returns an interface to Qt Designer's object inspector.
参见 setObjectInspector().
QDesignerPropertyEditorInterface *QDesignerFormEditorInterface::propertyEditor() const
Returns an interface to Qt Designer's property editor.
参见 setPropertyEditor().
void QDesignerFormEditorInterface::setActionEditor(QDesignerActionEditorInterface *actionEditor)
Sets Qt Designer's action editor to be the specified actionEditor.
参见 actionEditor().
void QDesignerFormEditorInterface::setObjectInspector(QDesignerObjectInspectorInterface *objectInspector)
Sets Qt Designer's object inspector to be the specified objectInspector.
参见 objectInspector().
void QDesignerFormEditorInterface::setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)
Sets Qt Designer's property editor to be the specified propertyEditor.
参见 propertyEditor().
void QDesignerFormEditorInterface::setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)
Sets Qt Designer's widget box to be the specified widgetBox.
参见 widgetBox().
QWidget *QDesignerFormEditorInterface::topLevel() const
Returns Qt Designer's top-level widget.
QDesignerWidgetBoxInterface *QDesignerFormEditorInterface::widgetBox() const
Returns an interface to Qt Designer's widget box.
参见 setWidgetBox().