이 페이지에서

QAbstractExtensionFactory Class

QAbstractExtensionFactory 클래스는 ` Qt Widgets Designer` 내의 확장 팩토리를 위한 인터페이스를 제공합니다. 더 보기...

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

QExtensionFactory

공개 함수

virtual ~QAbstractExtensionFactory()
virtual QObject *extension(QObject *object, const QString &iid) const = 0

상세 설명

QAbstractExtensionFactory는 직접 인스턴스화하도록 의도된 것이 아닙니다. 대신 QExtensionFactory 를 사용하십시오.

Qt Widgets Designer 에서는 확장 팩토리를 사용하여 필요에 따라 명명된 확장을 조회하고 생성합니다. 따라서 사용자 정의 확장을 구현할 때는 QExtensionFactory, 즉 해당 확장의 인스턴스를 생성할 수 있는 클래스를 생성하고, Qt Widgets Designer 의 extension manager 를 사용하여 등록해야 합니다.

확장 기능이 요청되면, Qt Widgets Designer 의 extension manager 메서드는 등록된 모든 팩토리를 순차적으로 처리하며, 각 팩토리에 대해 QExtensionFactory::createExtension()를 호출하여, 선택된 객체에 대해 요청된 확장 기능을 생성할 수 있는 첫 번째 팩토리가 발견될 때까지 이 과정을 반복합니다. 그런 다음 해당 팩토리가 확장 기능의 인스턴스를 생성합니다.

QExtensionFactory 및 QExtensionManager도 참조하십시오 .

멤버 함수 문서

[virtual noexcept] QAbstractExtensionFactory::~QAbstractExtensionFactory()

확장 기능 팩토리를 제거합니다.

[pure virtual] QObject *QAbstractExtensionFactory::extension(QObject *object, const QString &iid) const

주어진 ` object`에 대해 ` iid `로 지정된 확장자를 반환합니다.

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