1 2 3 4 5 6 7 8 9 10 11 12 13 14
#pragma once #include <plugin_if.h> class plugin1:public QObject,public PluginInterface { Q_OBJECT Q_INTERFACES(PluginInterface) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "demo.PluginInterface" FILE "plugin.json") #endif public: QString getResource() override; };