[Interest] @2x images and file aliases in QRC

Dmitry Q linuxsquirrel.dev at gmail.com
Mon Nov 24 17:10:55 CET 2014


Hi. Consider the following QRC:

<RCC>
    <qresource prefix="/">
        <file alias="small.png">SMALL.png</file>
        <file alias="small at 2x.png">SMALL-RETINA.png</file>
    </qresource>
</RCC>

and the following QML code:

Image {
    source: "small.png"
}

What file the image loader will load on a Retina display? "small at 2x.png"?
Or inexistent "SMALL at 2x.png"?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141124/2ce0c8e5/attachment.html>


More information about the Interest mailing list