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 |
継承元: |
パブリック関数
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も参照して ください。
© 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.