QAbstractExtensionFactory Class

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

Header: #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 Designerextension manager 를 사용하여 등록해야 합니다.

확장이 필요한 경우 Qt Widgets Designerextension manager 은 선택한 객체에 대해 요청된 확장을 만들 수 있는 첫 번째 팩토리를 찾을 때까지 등록된 모든 팩토리를 각각 QExtensionFactory::createExtension()를 호출하여 실행합니다. 그러면 이 팩토리가 확장자의 인스턴스를 만듭니다.

QExtensionFactoryQExtensionManager참조하세요 .

멤버 함수 문서

[virtual noexcept] QAbstractExtensionFactory::~QAbstractExtensionFactory()

확장 공장을 파괴합니다.

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

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

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