Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43842

Scanning for QML imports of projects fails

    XMLWordPrintable

Details

    • Android, iOS/tvOS/watchOS
    • 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.

      Attachments

        Issue Links

          Activity

            People

              qtandroidteam Qt Android Team
              work7 Siebenhandl
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              10 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated: