Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt 5 plugins
Stasi4ek last edited by
There is one thing I can not understand
Q_PLUGIN_METADATA need IID for example
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "mystyleplugin.json")
Q_PLUGIN_METADATA(IID "tld.domain.Project.MyPluginInterface" FILE "myplugin.json")
But why IID called like this? How should I call my IID in my project? For what is responsible this name, is it link for something?
The IID must be unique. It's a naming convention that generally ensure that you won't get the same id twice.
Follow the second option to identify your plugin.