qtdoc/examples/demos/clocks
Sami Shalayel efc394f00c clock demo: use qt_add_qml_module
Make the clocks demo use qt_add_qml_module instead of qt_add_resources.
Also put the qml files in the same folder where the qt_add_qml_module
happens to avoid having two qml modules (one with clocks.qml and another
with Clock.qml), and move the images to an images folder.
Rename the executable to clocksexample to avoid clashes with the newly
added QML module clocks.

Fix the uris to the images to reflect the new path in the qrc.

Use qt_standard_project_setup().

Use QQuickView::loadFromModule() in the main.cpp and add a qmldir in the
.qrc to make loadFromModule() work when using qmake.

Also update the documentation.

Pick-to: 6.8
Task-number: QTBUG-100100
Change-Id: I16274f041f6d16acc5910d9eaef645234dc6f34f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
2024-07-30 06:52:13 +00:00
..
doc clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
images clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
CMakeLists.txt clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
Clock.qml clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
Main.qml clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
clocks.pro clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
clocks.qmlproject Move demos to qtdoc repository 2018-07-09 12:43:59 +00:00
clocks.qrc clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
main.cpp clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00
qmldir clock demo: use qt_add_qml_module 2024-07-30 06:52:13 +00:00