summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/hybridshell/main.cpp2
-rw-r--r--examples/qtobject/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/hybridshell/main.cpp b/examples/hybridshell/main.cpp
index ce7f463..949bb65 100644
--- a/examples/hybridshell/main.cpp
+++ b/examples/hybridshell/main.cpp
@@ -12,7 +12,7 @@ int main(int argc, char *argv[])
qmlRegisterType<Shell>("Qt.labs", 1, 0, "HybridShell");
QtQuick2ApplicationViewer viewer;
- viewer.setMainQmlFile(QStringLiteral("qml/hybridshell/main.qml"));
+ viewer.setMainQmlFile(app.applicationDirPath() + QStringLiteral("/qml/hybridshell/main.qml"));
viewer.showExpanded();
return app.exec();
diff --git a/examples/qtobject/main.cpp b/examples/qtobject/main.cpp
index fe8efff..b816f0e 100644
--- a/examples/qtobject/main.cpp
+++ b/examples/qtobject/main.cpp
@@ -11,7 +11,7 @@ int main(int argc, char *argv[])
qmlRegisterType<TestObject>("Qt.labs", 1, 0, "TestObject");
QtQuick2ApplicationViewer viewer;
- viewer.setMainQmlFile(QStringLiteral("qml/qtobject/main.qml"));
+ viewer.setMainQmlFile(app.applicationDirPath() + QStringLiteral("/qml/qtobject/main.qml"));
viewer.showExpanded();
return app.exec();