Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
6.9
-
45f024c54 (dev), 16296160b (6.9), 606037e55 (6.9.0), 36375f884 (6.8), cd38ca407 (dev), 3d18d15d3 (6.8.3), d9f471395 (6.9), 6520709bb (6.8), ff0352cde (6.8.3), be6052192 (6.9.0)
Description
It seems that people are a bit confused on how to create modern QML modules (from a CMake point of view).
We should write some blogpost/documentation on how to modernize an existing Qt application from early Qt 6.X (with maybe some Qt 5 leftovers?) to have modern Qt 6.8/6.9 QML modules, and one to show how to write new QML module (targeting 6.8/6.9) for new code.
(non-exhaustive) list of things that changed:
- resource paths: :/qt/qml/ instead of root /
- setting import paths for qmlls: DEPENDENCIES TARGET ...
- getting rid of qmldir/.qrc/qmltypes files, except for qmake compatibility
- getting rid of imperative type registration in favor of declarative type registration
Maybe we could use https://github.com/emericg/QmlAppTemplate at commit fb6b0c36aa6f31372777bd1c29fa1199b07d054e as an example on how to modernize a project.
(Might need to link or refer to https://www.qt.io/blog/whats-new-for-qml-modules-in-6.5)
Attachments
Issue Links
- relates to
-
QTBUG-122986 Document recommended project structure for projects that have a QML module used by two or more executables
-
- Reported
-
- resulted from
-
QTBUG-131920 F2 shortcut in qml files leads to build dir instead of source
-
- Closed
-
For Gerrit Dashboard: QTBUG-133547 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
625439,9 | doc: document how to write modern QML Modules | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
628889,6 | doc: add links to "Port QML Modules to CMake" page | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
629472,2 | doc: document how to write modern QML Modules | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
629534,2 | doc: document how to write modern QML Modules | 6.9.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
629535,2 | doc: document how to write modern QML Modules | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
629840,2 | doc: document how to write modern QML Modules | 6.8.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
630045,2 | doc: add links to "Port QML Modules to CMake" page | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
630088,2 | doc: add links to "Port QML Modules to CMake" page | 6.9.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
630089,2 | doc: add links to "Port QML Modules to CMake" page | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
630188,2 | doc: add links to "Port QML Modules to CMake" page | 6.8.3 | qt/qtdeclarative | Status: MERGED | +2 | 0 |