diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2022-05-31 15:00:45 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-06-24 08:45:43 +0200 |
| commit | d270c51f812b5f0ffe6208b38c8ea0e898535e50 (patch) | |
| tree | f9f5e95f7cc0351925c2ed3f1dded34728787f62 /examples/quick/window/main.cpp | |
| parent | 12b0581a79f5fb866050628009878877af789e46 (diff) | |
Adapt examples to AUTO_RESOURCE_PREFIX
Examples that don't explicitly set NO_RESOURCE_TARGET_PATH get the
AUTO_RESOURCE_PREFIX now.
Task-number: QTBUG-103452
Change-Id: I6b41e96ce5620079f60ca2f967b0a2e611c1f738
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'examples/quick/window/main.cpp')
| -rw-r--r-- | examples/quick/window/main.cpp | 5 |
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 |
