QStaticPlugin Struct

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

Header: #include <QStaticPlugin>
CMake: find_package(Qt6 COMPONENTS Core REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 5.2

Public Functions

QJsonObject metaData() const

Public Variables

QtPluginInstanceFunction instance

Detailed Description

See also QPluginLoader and How to Create Qt Plugins.

Member Function Documentation

QJsonObject QStaticPlugin::metaData() const

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

See also Q_PLUGIN_METADATA().

Member Variable Documentation

QtPluginInstanceFunction QStaticPlugin::instance

Holds the plugin instance.

See also QPluginLoader::staticInstances().

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