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() override |
| 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() 함수를 제공합니다.
QDesignerFormEditorInterface 및 QDesignerFormWindowInterface도 참조하십시오 .
멤버 함수 설명서
[explicit] QDesignerObjectInspectorInterface::QDesignerObjectInspectorInterface(QWidget *parent, Qt::WindowFlags flags = {})
지정된 객체 검사기( parent )와 지정된 창( flags)을 사용하여 객체 검사기 인터페이스를 생성합니다.
[override virtual noexcept] QDesignerObjectInspectorInterface::~QDesignerObjectInspectorInterface()
객체 인스펙터 인터페이스를 제거합니다.
[virtual] QDesignerFormEditorInterface *QDesignerObjectInspectorInterface::core() const
Qt Widgets Designer 의 현재 ` QDesignerFormEditorInterface ` 객체에 대한 포인터를 반환합니다.
[pure virtual slot] void QDesignerObjectInspectorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
현재 선택된 양식 창을 ‘ 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.