diff options
Diffstat (limited to 'examples/quick/controls/touch/src')
-rw-r--r-- | examples/quick/controls/touch/src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quick/controls/touch/src/main.cpp b/examples/quick/controls/touch/src/main.cpp index bb4b3bdd..e66387f7 100644 --- a/examples/quick/controls/touch/src/main.cpp +++ b/examples/quick/controls/touch/src/main.cpp @@ -45,5 +45,7 @@ int main(int argc, char *argv[]) { QtQuickControlsApplication app(argc, argv); QQmlApplicationEngine engine(QUrl("qrc:/main.qml")); + if (engine.rootObjects().isEmpty()) + return -1; return app.exec(); } |