aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/window/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/window/main.cpp')
-rw-r--r--examples/quick/window/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/quick/window/main.cpp b/examples/quick/window/main.cpp
index 47dfa01f61..8de2aa8eef 100644
--- a/examples/quick/window/main.cpp
+++ b/examples/quick/window/main.cpp
@@ -14,16 +14,13 @@ int main(int argc, char* argv[])
QGuiApplication app(argc, argv);
QQmlEngine engine;
- // Add the qrc root as QML import path so that the "shared" module can be found.
- engine.addImportPath(QStringLiteral(":/"));
-
#ifdef Q_OS_MACOS
engine.addImportPath(app.applicationDirPath() + QStringLiteral("/../PlugIns"));
#endif
QQmlComponent component(&engine);
QQuickWindow::setDefaultAlphaBuffer(true);
- component.loadUrl(QUrl("qrc:///window/window.qml"));
+ component.loadUrl(QUrl("qrc:/qt/qml/window/window.qml"));
if ( component.isReady() )
component.create();
else