このページでは

QStaticPlugin Struct

QStaticPlugin は、静的プラグインのインスタンスへの参照とそのメタデータを格納する構造体です。詳細...

ヘッダー: #include <QStaticPlugin>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

パブリック関数

QJsonObject metaData() const

パブリック変数

QtPluginInstanceFunction instance

詳細な説明

「 QPluginLoader 」 および「Qtプラグインの作成方法」も参照してください 。

メンバ関数のドキュメント

QJsonObject QStaticPlugin::metaData() const

プラグインのメタデータを `QJsonObject` として返します。

Q_PLUGIN_METADATA()も参照してください 。

メンバ変数のドキュメント

QtPluginInstanceFunction QStaticPlugin::instance

プラグインのインスタンスを保持します。

QPluginLoader::staticInstances()も参照してください 。

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