Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.4.0, 5.15.8, 6.2.2, 6.7.0
-
-
12486c4b0 (dev), dc7e4e0d1 (6.7), 87a36db9e (tqtc/lts-6.5)
-
2023wk52FOQtforAndroid, 2024wk04FOQtforAndroid, 2024wk06FOQtforAndroid, 2024wk08FOQtforAndroid, 2024wk10FOQtforAndroid, 2024wk12FOQtforAndroid, 2024wk14FOQtforAndroid
Description
The parsing for nedded QML imports fails, if there is a project structure like this:
- Subdir project
- application project
- library project
The library project is e.g. a GUI lib, the application project link against this lib and is the executable. Only the GUI lib constains QML files (see attached example)
When the application runs there comes following error:
W/Qt ( 3763): qrc:/main.qml:1 ((null)): qrc:/main.qml:1:1: module "QtQuick" is not installed
This is new in 5.4.0, in 5.3.2 the QML of the GUI library is still parsed and there are no errors. The changes in qmlimportscanner / androiddeployqt made for 5.4.0 have broken this.
There is workround: put an DummyImports.qml inside the application project. The DummyImports.qml has to contain all the needed import statements.
Attachments
Issue Links
- relates to
-
QTBUG-79596 QtPositioning and QtLocation don't deploy correctly on android
- Reported
For Gerrit Dashboard: QTBUG-43842 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
553583,5 | CMake: Add dependencies to a target's "root path" for qmlimportscanner | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
554429,2 | CMake: Add dependencies to a target's "root path" for qmlimportscanner | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
554516,3 | CMake: Add dependencies to a target's "root path" for qmlimportscanner | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |