Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.2
-
None
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.