Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27027

[Regression QTCreator 5? -> 6.0.3] qmlimportscanner doesn't scan qrc files in subdirs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 6.0.2
    • Android Support
    • None
    • Kubuntu 20.04
    • Android

    Description

      When building a qmake subdirs project for Android, the qmlimportscanner only takes the qrc files from one subdir (the one that builds the main target).
      All others are ignored.
      The verbose output of the android build has a line for "Running qmlimportscanner with the following command:" where the parameter -qrcFiles indeed only includes the qrc files of that one target.

      The qrc file that is scanned only includes one qml file that imports stuff from qrc files in the other subdirs projects like this:

      import "qrc:/path/in/other/project" as blabla
      

      This was not an issue on older versions of QtCreator.
      The projects in the subdirs are all built statically.

      Is there a workaround for this besides creating a "dummy" qrc entry that contains all neccessary imports (and therefore has to be constantly checked when adding new qml files anywhere )

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              portale Alessandro Portale
              lkdem Ludger Krämer
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes