diff options
Diffstat (limited to 'examples/quick/controls/uiforms/main.cpp')
| -rw-r--r-- | examples/quick/controls/uiforms/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/controls/uiforms/main.cpp b/examples/quick/controls/uiforms/main.cpp index de92dd709..6a15842a9 100644 --- a/examples/quick/controls/uiforms/main.cpp +++ b/examples/quick/controls/uiforms/main.cpp @@ -55,5 +55,7 @@ int main(int argc, char *argv[]) qmlRegisterSingletonType(QUrl(QStringLiteral("qrc:/qml/CustomerModel.qml")), "io.qt.example", 1, 0, "CustomerModel"); QQmlApplicationEngine engine(QUrl("qrc:/main.qml")); + if (engine.rootObjects().isEmpty()) + return -1; return app.exec(); } |
