#include #include "rtptheme.h" QT_BEGIN_NAMESPACE class RTPThemePlugin : public QPlatformThemePlugin { Q_OBJECT Q_PLUGIN_METADATA(IID QPlatformThemeFactoryInterface_iid FILE "rtptheme.json") public: QPlatformTheme *create(const QString &key, const QStringList ¶ms) override; }; QPlatformTheme *RTPThemePlugin::create(const QString &key, const QStringList ¶ms) { Q_UNUSED(params); if (!key.compare(QLatin1String("rtptheme"), Qt::CaseInsensitive)) return new RTPTheme; return nullptr; } QT_END_NAMESPACE #include "main.moc"