Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.4.0, 5.15.8, 6.2.2
-
-
2023wkXXFOQtforAndroid
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.