diff options
Diffstat (limited to 'examples/quickcontrols/chattutorial/chapter1/main.cpp')
-rw-r--r-- | examples/quickcontrols/chattutorial/chapter1/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols/chattutorial/chapter1/main.cpp b/examples/quickcontrols/chattutorial/chapter1/main.cpp index 7252c0c3ad..73d4bf3b63 100644 --- a/examples/quickcontrols/chattutorial/chapter1/main.cpp +++ b/examples/quickcontrols/chattutorial/chapter1/main.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2017 The Qt Company Ltd. +// Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause #include <QGuiApplication> @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); QQmlApplicationEngine engine; - engine.load(QUrl(QStringLiteral("qrc:/qt/qml/chapter1/main.qml"))); + engine.loadFromModule("chattutorial", "Main"); return app.exec(); } |