Commit Graph

3 Commits

Author SHA1 Message Date
Sami Shalayel 86d40e28d5 alarms: port to qt_add_qml_module
Use qt_add_qml_module, qt_standard_project_setup, use loadFromModule(),
rename main.qml to capital Main.qml so it can be loaded via
loadFromModule(), rename the QML Module to Alarms as QML Modules usually
start with an upper case letter.
Also fix the documentation.

Pick-to: 6.8
Task-number: QTBUG-100100
Change-Id: I8b0c7c1924c4c5e0268ca33b339ba3645bb29f7a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-09-24 10:23:11 +02:00
Alexandru Croitor c43d133e52 Fix alarms demo to run successfully
Previously it failed with

 QQmlApplicationEngine failed to load component
 qrc:/alarms/main.qml: No such file or directory

main.cpp was adjusted to use alarms/main.cpp but the resource file
locations were not changed.
Change them to match the expected path in main.cpp.

qtquickcontrols2.conf needs to stay in the root of the resource path,
so it's added via a separate resource.

Amends 302121874e

Pick-to: 5.15 6.2 6.3
Fixes: QTBUG-100434
Change-Id: I3436e07600ca7dad8bba45274ba49dc6c137a938
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2022-02-04 11:20:39 +01:00
Nico Vertriest 1df7011858 Doc: tutorial Get Started with Qt Quick
Task-number: QTBUG-68739
Change-Id: Ib14e4eb4c20583af2be9198539077f1be5ae471a
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
2018-09-26 10:10:15 +00:00