QStaticPlugin Class

QStaticPlugin is a struct containing a reference to a static plugin instance together with its meta data. 更多...

头文件: #include <QStaticPlugin>
qmake: QT += core
开始支持版本: Qt 5.2

公有函数

QObject *instance()
QJsonObject metaData() const
const char *rawMetaData()

详细描述

QStaticPlugin is a struct containing a reference to a static plugin instance together with its meta data.

参见 QPluginLoader and How to Create Qt Plugins.

成员函数

QObject *QStaticPlugin::instance()

Returns the plugin instance.

参见 QPluginLoader::staticInstances().

QJsonObject QStaticPlugin::metaData() const

Returns a the meta data for the plugin as a QJsonObject.

参见 rawMetaData().

const char *QStaticPlugin::rawMetaData()

Returns the raw meta data for the plugin.

参见 metaData() and Q_PLUGIN_METADATA().