From: Andrew den Exter Date: Tue, 19 Jun 2012 07:06:22 +0000 (+1000) Subject: Resolve example qml file paths relative to the executable path. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=4bc1c0c7178ab3e376df87cd08acebd5d552c212;p=konrad%2Fqtdeclarative.git Resolve example qml file paths relative to the executable path. Task-number: QTBUG-26202 Change-Id: I0ef9d2aa2248c8ddfd61afcd8bca731325f8d239 Reviewed-by: Alan Alpert --- diff --git a/examples/shared/shared.h b/examples/shared/shared.h index e6d0130..72157e0 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();\ }