QDesignerFormEditorInterface Class
La clase QDesignerFormEditorInterface le permite acceder a los distintos componentes de Qt Widgets Designer. Más...
| Cabecera: | #include <QDesignerFormEditorInterface> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Designer)target_link_libraries(mytarget PRIVATE Qt6::Designer) |
| qmake: | QT += designer |
| Hereda: | QObject |
Funciones Públicas
| QDesignerFormEditorInterface(QObject *parent = 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 |
Descripción Detallada
Qt Widgets El objeto QDesignerFormEditorInterface actual de Designer contiene información sobre todos los componentes de Qt Widgets Designer: El editor de acciones, el inspector de objetos, el editor de propiedades, el cuadro de widgets y los gestores de ventanas de extensión y formulario. QDesignerFormEditorInterface contiene una colección de funciones que proporcionan interfaces a todos estos componentes. Normalmente se utilizan para consultar (y manipular) el componente correspondiente. Por ejemplo
auto *objectInspector = formEditor->objectInspector(); auto *manager = formEditor->formWindowManager(); objectInspector->setFormWindow(manager->formWindow(0));
QDesignerFormEditorInterface no está pensado para ser instanciado directamente. El parámetro de la función QDesignerCustomWidgetInterface::initialize() proporciona un puntero al objeto QDesignerFormEditorInterface actual de Qt Widgets Designer (formEditor en el ejemplo anterior). Cuando implemente un plugin de widget personalizado, debe subclasificar QDesignerCustomWidgetInterface para exponer su plugin a Qt Widgets Designer.
QDesignerFormEditorInterface también proporciona funciones que pueden configurar el editor de acciones, el editor de propiedades, el inspector de objetos y el cuadro de widgets. Estos solo son útiles si quieres proporcionar tus propios componentes personalizados.
Si el diseñador está incrustado en otro programa, se podría proporcionar su propio gestor de configuración. El gestor es utilizado por los componentes de Qt Widgets Designer para almacenar/recuperar ajustes de configuración persistentes. El gestor por defecto utiliza QSettings como backend.
Finalmente, QDesignerFormEditorInterface proporciona la función topLevel() que devuelve el widget de nivel superior de Qt Widgets Designer.
Véase también QDesignerCustomWidgetInterface.
Documentación de las funciones miembro
[explicit] QDesignerFormEditorInterface::QDesignerFormEditorInterface(QObject *parent = nullptr)
Construye un objeto QDesignerFormEditorInterface con la dirección parent.
[virtual noexcept] QDesignerFormEditorInterface::~QDesignerFormEditorInterface()
Destruye el objeto QDesignerFormEditorInterface.
QDesignerActionEditorInterface *QDesignerFormEditorInterface::actionEditor() const
Devuelve una interfaz al editor de acciones de Qt Widgets Designer.
Véase también setActionEditor().
QExtensionManager *QDesignerFormEditorInterface::extensionManager() const
Devuelve una interfaz para el gestor de extensiones de Qt Widgets Designer.
QDesignerFormWindowManagerInterface *QDesignerFormEditorInterface::formWindowManager() const
Devuelve una interfaz para el gestor de ventanas de formularios de Qt Widgets Designer.
QDesignerObjectInspectorInterface *QDesignerFormEditorInterface::objectInspector() const
Devuelve una interfaz para el inspector de objetos de Qt Widgets Designer.
Véase también setObjectInspector().
QDesignerPropertyEditorInterface *QDesignerFormEditorInterface::propertyEditor() const
Devuelve una interfaz al editor de propiedades de Qt Widgets Designer.
Véase también setPropertyEditor().
void QDesignerFormEditorInterface::setActionEditor(QDesignerActionEditorInterface *actionEditor)
Establece que el editor de acciones de Qt Widgets Designer sea el especificado en actionEditor.
Véase también actionEditor().
void QDesignerFormEditorInterface::setObjectInspector(QDesignerObjectInspectorInterface *objectInspector)
Establece el inspector de objetos de Qt Widgets Designer para que sea el especificado objectInspector.
Véase también objectInspector().
void QDesignerFormEditorInterface::setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)
Establece el editor de propiedades de Qt Widgets Designer como el especificado en propertyEditor.
Véase también propertyEditor().
void QDesignerFormEditorInterface::setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)
Establece la caja de widgets de Qt Widgets Designer para que sea la especificada en widgetBox.
Véase también widgetBox().
QWidget *QDesignerFormEditorInterface::topLevel() const
Devuelve el widget de nivel superior de Qt Widgets Designer.
QDesignerWidgetBoxInterface *QDesignerFormEditorInterface::widgetBox() const
Devuelve una interfaz a la caja de widgets de Qt Widgets Designer.
Véase también setWidgetBox().
© 2026 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.