Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5 plugins



  • Good Day!
    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?


  • Lifetime Qt Champion

    Hi,

    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.


Log in to reply