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

Malformed immediate .qrc file generated on Qt 6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2
    • Fix Version/s: None
    • Component/s: Build System, QML: Tooling
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      When adding resources from location above the current one

      RESOURCES += $$files(../qml/*)

      then on Qt 5, there is qmake_qmake_immediate.qrc genereated with a following entry: 

      <file alias="../qml/main.qml">/home/michalcieslak/workspace/QmlResourcesTest/qml/main.qml</file>

      On Qt 6 the same file contains a following entry:

      <file alias="main.qml">/home/michalcieslak/workspace/QmlResourcesTest/qml/main.qml</file>
      

      Generally, on Qt 6 'alias' attribute always consist of only a file name. It causes that qml files are not found at runtime (localized properly on Qt5). Additionally such behavior can lead to name conflict while having files with the same name in various subdirs. 

       

        Attachments

        1. QmlResourcesTest.zip
          2 kB
          Michał Cieślak
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            mcieslak Michał Cieślak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes