Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
ef2912334 (dev), 7851f6d2c (dev), 988c7062e (dev)
Description
For deployment and installation use cases, it is necessary to add additional import paths to the QML engine, as QML modules might not end up in any of the default import paths (which might not even be writable).
A convenient way would be to have a file allowing to set a list of import paths. Those would either amend or replace the existing import path locations.
We already have a somewhat similar mechanism in qt.conf via QML(2)_IMPORT_PATH. However, that only allows adding one new path, and also has the issue that the default (file system) import path of the Qt modules would be gone.
However, it might be possible to extend qt.conf to support this use-case, too.
In order to avoid issues with tooling, the mechanism needs to be understood by both the engine and our tooling (compiler, linter, etc.).
Attachments
Issue Links
- blocks
-
QTBUG-122987 Investigate allowing sibling projects to pick up QML modules without installation
- Closed
- is required for
-
QTBUG-100102 Provide CMake API for deploying a single QML module
- Reported
- relates to
-
QTBUG-96232 Figure out how to build examples as ExternalProjects in a prefix build setup so it can be used in the CI
- In Progress
For Gerrit Dashboard: QTBUG-124009 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
545615,8 | WIP: Allow specifying additional imports via a file | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
560001,19 | QLibraryInfo: Introduce paths | dev | qt/qtbase | Status: MERGED | +2 | 0 |
560607,17 | QQmlImportDataBase: Add all import paths from qt.conf | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
562011,4 | qtconf: Document possibiltiy to add multiple entries | dev | qt/qtdoc | Status: MERGED | +2 | 0 |