QDesignerObjectInspectorInterface Class

QDesignerObjectInspectorInterface 클래스를 사용하면 Qt Widgets Designer 의 개체 인스펙터의 포커스를 변경할 수 있습니다. 더 보기...

헤더: #include <QDesignerObjectInspectorInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
qmake: QT += designer
상속합니다: QWidget

공용 함수

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

공용 슬롯

virtual void setFormWindow(QDesignerFormWindowInterface *formWindow) = 0

상세 설명

QDesignerObjectInspectorInterface를 사용하여 현재 양식 창 선택을 변경할 수 있습니다. 예를 들어 사용자 지정 위젯 플러그인을 구현할 때 사용할 수 있습니다:

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

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

QDesignerObjectInspectorInterface 클래스는 직접 인스턴스화할 수 없습니다. QDesignerFormEditorInterface::objectInspector () 함수를 사용하여 Qt Widgets Designer 의 객체 검사기에 대한 인터페이스를 검색할 수 있습니다. Qt Widgets Designer 의 현재 QDesignerFormEditorInterface 객체(위 예시에서는formEditor )에 대한 포인터는 QDesignerCustomWidgetInterface::initialize() 함수의 매개변수에 의해 제공됩니다. 사용자 정의 위젯 플러그인을 구현할 때는 QDesignerCustomWidgetInterface 을 서브클래스화하여 Qt Widgets Designer 에 플러그인을 노출해야 합니다.

이 인터페이스는 Qt Widgets Designer 의 현재 QDesignerFormEditorInterface 객체에 대한 포인터를 검색하는 데 사용할 수 있는 core() 함수와 현재 양식 창 선택을 변경할 수 있는 setFormWindow() 함수를 제공합니다.

QDesignerFormEditorInterfaceQDesignerFormWindowInterface참조하세요 .

멤버 함수 문서

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

지정된 parent 및 지정된 창 flags 으로 객체 검사기 인터페이스를 구축합니다.

[virtual noexcept] QDesignerObjectInspectorInterface::~QDesignerObjectInspectorInterface()

오브젝트 인스펙터 인터페이스를 삭제합니다.

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

Qt Widgets Designer 의 현재 QDesignerFormEditorInterface 객체에 대한 포인터를 반환합니다.

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

현재 선택된 양식 창을 formWindow 로 설정합니다.

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