diff options
Diffstat (limited to 'examples/shared/shared.h')
-rw-r--r-- | examples/shared/shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shared/shared.h b/examples/shared/shared.h index e6d0130ec8..72157e02ef 100644 --- a/examples/shared/shared.h +++ b/examples/shared/shared.h @@ -43,7 +43,7 @@ {\ QGuiApplication app(argc,argv);\ QQuickView view;\ - view.setSource(QUrl::fromLocalFile(#NAME ".qml"));\ + view.setSource(QUrl::fromLocalFile(QCoreApplication::applicationDirPath() + QLatin1String("/" #NAME ".qml")));\ view.show();\ return app.exec();\ } |