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 |
詳細説明
代わりにQExtensionFactory を使用してください。
Qt Widgets Designer では、拡張ファクトリーは、必要に応じて名前付き拡張機能を検索し、作成するために使用されます。そのため、カスタム拡張機能を実装する場合は、QExtensionFactory 、つまり拡張機能のインスタンスを作成できるクラスを作成し、Qt Widgets Designer のextension manager を使用して登録する必要があります。
拡張モジュールが必要になると、Qt Widgets Designer のextension manager は、登録されているすべてのファクトリーに対してQExtensionFactory::createExtension() を呼び出します。このファクトリーが拡張モジュールのインスタンスを作成します。
QExtensionFactory およびQExtensionManagerも参照して ください。
© 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.