diff --git a/bluez/bluezqtextensionplugin.cpp b/bluez/bluezqtextensionplugin.cpp index 6ebd260..e8c5ad0 100644 --- a/bluez/bluezqtextensionplugin.cpp +++ b/bluez/bluezqtextensionplugin.cpp @@ -83,4 +83,10 @@ void BluezQtExtensionPlugin::registerTypes(const char *uri) qmlRegisterSingletonType(uri, 1, 0, "Services", services_singleton); qmlRegisterType(uri, 1, 0, "DevicesProxyModel"); + +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) + qmlRegisterType(); +#else + qmlRegisterAnonymousType(uri, 1); +#endif }