Resource editor won't allow me to add files with relative paths
Moved
Unsolved
Qt Creator and other tools
-
wrote on 1 Sept 2022, 04:20 last edited by
I had previously built my resources.qrc by hand in the ui directory of my project.
The resource compiler is quite happy with lines in the rc file that look like:
<qresource prefix="/stacking"> <file alias="normalmode.bmp">../res/normalmode.bmp</file> <file alias="intersectionmode.bmp">../res/intersectionmode.bmp</file> <file alias="mosaicmode.bmp">../res/mosaicmode.bmp</file> <file alias="custommode.bmp">../res/custommode.bmp</file> <file alias="4corners.png">../res/4Corners.png</file> <file alias="DarkColour-16.png">../res/DarkColour-16.png</file> <file alias="DarkColour-32.png">../res/DarkColour-32.png</file>
The resource editor OTOH refuses to let me add the files from there insisting that they be in a sub directory of the folder containing the qrc file !!!
That strikes me as a very odd!
-
Hi,
I might be wrong but it could be that this is currently working because you use aliases.
Can you try to use your resources with the aliases removed ?
1/2