En esta página

QDesignerFormEditorInterface Class

La clase QDesignerFormEditorInterface te permite acceder a los distintos componentes de Qt Widgets Designer. Más información...

Encabezado: #include <QDesignerFormEditorInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
qmake: QT += designer
Heredado de: 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 DesignerEl objeto actual `QDesignerFormEditorInterface` 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 de formularios. `QDesignerFormEditorInterface` contiene un conjunto de funciones que proporcionan interfaces para 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). Al implementar un complemento de widget personalizado, debes crear una subclase de QDesignerCustomWidgetInterface para exponer tu complemento a Qt Widgets Designer.

QDesignerFormEditorInterface también proporciona funciones que permiten configurar el editor de acciones, el editor de propiedades, el inspector de objetos y el cuadro de widgets. Estas funciones solo resultan útiles si se desea proporcionar componentes personalizados propios.

Si el diseñador está integrado en otro programa, se puede proporcionar su propio gestor de configuración. Los componentes de Qt Widgets Designer utilizan este gestor para almacenar y recuperar ajustes de configuración persistentes. El gestor predeterminado utiliza QSettings como backend.

Por último, 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 de miembro

[explicit] QDesignerFormEditorInterface::QDesignerFormEditorInterface(QObject *parent = nullptr)

Crea un objeto `QDesignerFormEditorInterface` con el ` parent` indicado.

[virtual noexcept] QDesignerFormEditorInterface::~QDesignerFormEditorInterface()

Elimina 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 al gestor de extensiones de Qt Widgets Designer.

QDesignerFormWindowManagerInterface *QDesignerFormEditorInterface::formWindowManager() const

Devuelve una interfaz al gestor de ventanas de formularios de Qt Widgets Designer.

QDesignerObjectInspectorInterface *QDesignerFormEditorInterface::objectInspector() const

Devuelve una interfaz al 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 el editor de acciones de Qt Widgets Designer para que 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 ` objectInspector` especificado.

Véase también objectInspector().

void QDesignerFormEditorInterface::setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)

Establece el editor de propiedades de ` Qt Widgets Designer` en el valor especificado ` propertyEditor`.

Véase también propertyEditor().

void QDesignerFormEditorInterface::setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)

Establece el cuadro de widgets de Qt Widgets Designer para que sea el especificado 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 al cuadro 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.