summaryrefslogtreecommitdiff
path: root/examples/qtobject/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qtobject/main.cpp')
-rw-r--r--examples/qtobject/main.cpp2
1 files changed, 1 insertions, 1 deletions
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();