En esta página

QDesignerObjectInspectorInterface Class

La clase QDesignerObjectInspectorInterface permite cambiar el foco del inspector de objetos de Qt Widgets Designer. Más...

Cabecera: #include <QDesignerObjectInspectorInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
qmake: QT += designer
Hereda: QWidget

Funciones Públicas

QDesignerObjectInspectorInterface(QWidget *parent, Qt::WindowFlags flags = {})
virtual ~QDesignerObjectInspectorInterface() override
virtual QDesignerFormEditorInterface *core() const

Ranuras Públicas

virtual void setFormWindow(QDesignerFormWindowInterface *formWindow) = 0

Descripción Detallada

Puedes usar la QDesignerObjectInspectorInterface para cambiar la selección de la ventana de formulario actual. Por ejemplo, cuando se implementa un plugin de widget personalizado:

        auto *objectInspector = formEditor->objectInspector();
        auto *manager = formEditor->formWindowManager();

        objectInspector->setFormWindow(manager->formWindow(0));

La clase QDesignerObjectInspectorInterface no está pensada para ser instanciada directamente. Puede recuperar una interfaz al inspector de objetos de Qt Widgets Designer utilizando la función QDesignerFormEditorInterface::objectInspector(). 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, debe subclasificar QDesignerCustomWidgetInterface para exponer su complemento a Qt Widgets Designer.

La interfaz proporciona la función core() que puede utilizar para recuperar un puntero al objeto QDesignerFormEditorInterface actual de Qt Widgets Designer, y la función setFormWindow() que le permite cambiar la selección de la ventana de formulario actual.

Ver también QDesignerFormEditorInterface y QDesignerFormWindowInterface.

Documentación de funciones miembro

[explicit] QDesignerObjectInspectorInterface::QDesignerObjectInspectorInterface(QWidget *parent, Qt::WindowFlags flags = {})

Construye una interfaz de inspector de objetos con el parent dado y la ventana especificada flags.

[override virtual noexcept] QDesignerObjectInspectorInterface::~QDesignerObjectInspectorInterface()

Destruye la interfaz del inspector de objetos.

[virtual] QDesignerFormEditorInterface *QDesignerObjectInspectorInterface::core() const

Devuelve un puntero al objeto QDesignerFormEditorInterface actual de Qt Widgets Designer.

[pure virtual slot] void QDesignerObjectInspectorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)

Establece la ventana de formulario actualmente seleccionada en formWindow.

© 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.