Index: sources/gui/guiglobals.cpp =================================================================== diff -u -r9a3ee027dbc33f39ee7df2a9dc5a7897c6b1854d -rf623529d6ec25b555f3ac2248d71fc2b5e7063d6 --- sources/gui/guiglobals.cpp (.../guiglobals.cpp) (revision 9a3ee027dbc33f39ee7df2a9dc5a7897c6b1854d) +++ sources/gui/guiglobals.cpp (.../guiglobals.cpp) (revision f623529d6ec25b555f3ac2248d71fc2b5e7063d6) @@ -27,21 +27,26 @@ { qRegisterMetaType ("GuiActionType"); qRegisterMetaType ("GuiActionInfo"); + } + + void registerQmlTypes() + { qmlRegisterType ("Gui.View", 0, 1, "GuiView"); qmlRegisterUncreatableType ("Gui.Actions", 0, 1, "GuiActions",QStringLiteral("Used only for enumerations no need to have an object")); } void startGui() { _viewer = new QQuickView; registerTypes(); + registerQmlTypes(); QObject::connect(_viewer, &QQuickView::statusChanged, qApp, [=](QQuickView::Status vStatus) { bool ok = vStatus == QQuickView::Ready; if (ok) { _viewer->show(); } else if (vStatus == QQuickView::Error || vStatus == QQuickView::Null) { - qDebug() << "Application Terminated:" << _viewer->errors(); + // qDebug() << "Application Terminated:" << _viewer->errors(); QCoreApplication::exit(-1); }