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는 직접 인스턴스화할 수 없습니다. QDesignerCustomWidgetInterface::initialize () 함수의 파라미터에 의해 Qt Widgets Designer 의 현재 QDesignerFormEditorInterface 객체(위 예시에서는formEditor
)에 대한 포인터가 제공됩니다. 사용자 정의 위젯 플러그인을 구현할 때는 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()도 참조하세요 .
© 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.