Details
-
Task
-
Resolution: Done
-
P1: Critical
-
None
-
6aad465f08 (qt/qtdeclarative/dev) 6aad465f08 (qt/tqtc-qtdeclarative/dev)
Description
We should add an option (RESOURCE_PREFIX auto) to qt_add_qml_module that sets the RESOURCE_PREFIX to /user.qt-project.org/imports. This prefix should then be added to the QML import path. This way we can easily identify well-behaved modules in their respective .qrc files. Furthermore we don't need to pollute the global .qrc namespace anymore. Modules the neither set a specific RESOURCE_PREFIX nor does "RESOURCE_PREFIX auto" should generate a warning at compile time.
Attachments
Issue Links
- relates to
-
QTBUG-104554 Revisit our story about the default qml import path for macOS app bundles
- Reported
-
QTBUG-95145 Facilitate automatic addition of a project specific qml import path to the qml engine using CMake
- Closed
For Gerrit Dashboard: QTBUG-103452 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
413575,25 | Introduce a sane resource path to qt_add_qml_module | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
413704,12 | Adapt examples to AUTO_RESOURCE_PREFIX | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
431103,2 | Doc: Fix introduction version of AUTO_RESOURCE_PREFIX | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |