Index: sources/gui/GuiGlobals.cpp =================================================================== diff -u -rae028f2ce4768d53d280f119ab2a11ac516fd3d2 -rc2f474ff07c98aa350c445a2474976a3cf985f40 --- sources/gui/GuiGlobals.cpp (.../GuiGlobals.cpp) (revision ae028f2ce4768d53d280f119ab2a11ac516fd3d2) +++ sources/gui/GuiGlobals.cpp (.../GuiGlobals.cpp) (revision c2f474ff07c98aa350c445a2474976a3cf985f40) @@ -207,7 +207,11 @@ { //using namespace View; qmlRegisterType ("Gui.View" , 0, 1, "GuiView"); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) qmlRegisterUncreatableType ("Gui.Actions" , 0, 1, "guiActions" , QStringLiteral("Used only for enumerations no need to have an object")); +#else + qmlRegisterUncreatableType ("Gui.Actions" , 0, 1, "GuiActions" , QStringLiteral("Used only for enumerations no need to have an object")); +#endif qmlRegisterSingletonType ("Gui.VEventSpy", 0, 1, "GuiEventSpy", [](QQmlEngine *, QJSEngine *) -> QObject * { return &_VEventSpy; });