diff --git a/plugin/kquickstyleitem.cpp b/plugin/kquickstyleitem.cpp --- a/plugin/kquickstyleitem.cpp +++ b/plugin/kquickstyleitem.cpp @@ -105,7 +105,12 @@ m_font = qApp->font(); setFlag(QQuickItem::ItemHasContents, true); setSmooth(false); + +#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) qmlRegisterType(); +#else + qmlRegisterAnonymousType("org.kde.qqc2-desktop-style", 1); +#endif connect(this, &KQuickStyleItem::visibleChanged, this, &KQuickStyleItem::updateItem); connect(this, &KQuickStyleItem::widthChanged, this, &KQuickStyleItem::updateItem);