이 페이지에서

QDesignerFormEditorInterface Class

QDesignerFormEditorInterface 클래스를 사용하면 Qt Widgets Designer 의 다양한 구성 요소에 접근할 수 있습니다. 더 보기...

헤더: #include <QDesignerFormEditorInterface>
CMake: find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
qmake: QT += designer
상속: QObject

공개 함수

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

상세 설명

Qt Widgets Designer현재의 QDesignerFormEditorInterface 객체는 Qt Widgets Designer 의 모든 구성 요소(액션 편집기, 객체 인스펙터, 속성 편집기, 위젯 상자, 확장 및 폼 창 관리자)에 대한 정보를 포함합니다. QDesignerFormEditorInterface는 이러한 모든 컴포넌트에 대한 인터페이스를 제공하는 함수 모음을 포함합니다. 이 함수들은 일반적으로 해당 컴포넌트를 조회(및 조작)하는 데 사용됩니다. 예를 들어:

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

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

QDesignerFormEditorInterface는 직접 인스턴스화되도록 의도되지 않았습니다. Qt Widgets Designer 의 현재 QDesignerFormEditorInterface 객체(위 예제의 경우formEditor )에 대한 포인터는 QDesignerCustomWidgetInterface::initialize() 함수의 매개변수를 통해 제공됩니다. 사용자 정의 위젯 플러그인을 구현할 때는 QDesignerCustomWidgetInterface 를 서브클래스화하여 Qt Widgets Designer 에 플러그인을 노출시켜야 합니다.

QDesignerFormEditorInterface는 또한 액션 편집기, 속성 편집기, 객체 인스펙터 및 위젯 상자를 설정할 수 있는 함수들을 제공합니다. 이러한 함수들은 사용자 정의 컴포넌트를 제공하려는 경우에만 유용합니다.

디자이너가 다른 프로그램에 내장된 경우, 자체 설정 관리자를 제공할 수 있습니다. 이 관리자는 Qt Widgets Designer 의 컴포넌트가 영구적인 구성 설정을 저장하거나 불러오는 데 사용됩니다. 기본 관리자는 QSettings 를 백엔드로 사용합니다.

마지막으로, QDesignerFormEditorInterface는 Qt Widgets Designer 의 최상위 위젯을 반환하는 topLevel() 함수를 제공합니다.

QDesignerCustomWidgetInterface도 참조하십시오 .

멤버 함수 문서

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

지정된 ` parent`를 사용하여 `QDesignerFormEditorInterface` 객체를 생성합니다.

[virtual noexcept] QDesignerFormEditorInterface::~QDesignerFormEditorInterface()

QDesignerFormEditorInterface 객체를 삭제합니다.

QDesignerActionEditorInterface *QDesignerFormEditorInterface::actionEditor() const

Qt Widgets Designer 의 액션 편집기에 대한 인터페이스를 반환합니다.

setActionEditor()도 참조하십시오 .

QExtensionManager *QDesignerFormEditorInterface::extensionManager() const

Qt Widgets Designer 의 확장 관리자에 대한 인터페이스를 반환합니다.

QDesignerFormWindowManagerInterface *QDesignerFormEditorInterface::formWindowManager() const

Qt Widgets Designer 의 양식 창 관리자에 대한 인터페이스를 반환합니다.

QDesignerObjectInspectorInterface *QDesignerFormEditorInterface::objectInspector() const

Qt Widgets Designer 의 객체 검사기로 연결되는 인터페이스를 반환합니다.

setObjectInspector()도 참조하십시오 .

QDesignerPropertyEditorInterface *QDesignerFormEditorInterface::propertyEditor() const

Qt Widgets Designer 의 속성 편집기에 대한 인터페이스를 반환합니다.

setPropertyEditor()도 참조하십시오 .

void QDesignerFormEditorInterface::setActionEditor(QDesignerActionEditorInterface *actionEditor)

Qt Widgets Designer 의 액션 편집기를 지정된 actionEditor 로 설정합니다.

actionEditor()도 참조하십시오 .

void QDesignerFormEditorInterface::setObjectInspector(QDesignerObjectInspectorInterface *objectInspector)

Qt Widgets Designer 의 객체 인스펙터를 지정된 objectInspector 로 설정합니다.

objectInspector()도 참조하십시오 .

void QDesignerFormEditorInterface::setPropertyEditor(QDesignerPropertyEditorInterface *propertyEditor)

Qt Widgets Designer 의 속성 편집기를 지정된 propertyEditor 로 설정합니다.

propertyEditor()도 참조하십시오 .

void QDesignerFormEditorInterface::setWidgetBox(QDesignerWidgetBoxInterface *widgetBox)

Qt Widgets Designer 의 위젯 상자를 지정된 widgetBox 로 설정합니다.

widgetBox()도 참조하십시오 .

QWidget *QDesignerFormEditorInterface::topLevel() const

Qt Widgets Designer 의 최상위 위젯을 반환합니다.

QDesignerWidgetBoxInterface *QDesignerFormEditorInterface::widgetBox() const

Qt Widgets Designer 의 위젯 상자에 대한 인터페이스를 반환합니다.

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.