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().

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