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

Malformed immediate .qrc file generated on Qt 6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2
    • Build System
    • None
    • 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

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            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