PDA

View Full Version : qresource file alias problem with svg



giotto
19th February 2008, 14:57
Hi,

I'd like to use aliases for my svg images.
If I set an alias they are not working. If I change the file to non-svg then it is displayed.
The files are exist. If I don't use the alias the files are shown.

Why can't I use aliases for svg files????

Not working

<file alias="asdf">images/YELLOW/radiobutton_unchecked.svg</file>
Working

<file>images/YELLOW/radiobutton_unchecked.svg</file>
Working

<file alias="asdf">images/YELLOW/radiobutton_unchecked.png</file>
Working for svg

QRadioButton#yellow::indicator::unchecked {image: url(:/images/YELLOW/radiobutton_unchecked.svg);}
Not working for svg, but working for png

QRadioButton#yellow::indicator::unchecked {image: url(:/asdf);}

DeepDiver
19th February 2008, 15:47
try to use the file extension with the alias like:
<file alias="asdf.svg">images/YELLOW/radiobutton_unchecked.svg</file>

Maybe the extension is necessary to load the right image plugin?

Good luck,

DeepDiver

giotto
19th February 2008, 15:59
It works!

Thank you!

png's why don't need the extension in the alias? :S


try to use the file extension with the alias like:
<file alias="asdf.svg">images/YELLOW/radiobutton_unchecked.svg</file>

Maybe the extension is necessary to load the right image plugin?

Good luck,

DeepDiver