diff --git a/src/quick/framelessquickmodule.cpp b/src/quick/framelessquickmodule.cpp index 3f72968d..112b1b31 100644 --- a/src/quick/framelessquickmodule.cpp +++ b/src/quick/framelessquickmodule.cpp @@ -91,7 +91,13 @@ void FramelessHelper::Quick::registerTypes(QQmlEngine *engine) return new FramelessQuickUtils; }); qmlRegisterAnonymousType(QUICK_URI_SHORT); - +#if (QT_VERSION <= QT_VERSION_CHECK(5, 16, 0)) + qRegisterMetaType("QuickGlobal::SystemTheme"); + qRegisterMetaType("QuickGlobal::SystemButtonType"); + qRegisterMetaType("QuickGlobal::ButtonState"); + qRegisterMetaType("QuickGlobal::BlurMode"); + qRegisterMetaType("QuickGlobal::WindowEdge"); +#endif qmlRegisterType(QUICK_URI_EXPAND("FramelessHelper")); qmlRegisterType(QUICK_URI_EXPAND("MicaMaterial")); qmlRegisterType(QUICK_URI_EXPAND("ImageItem"));