On Wed, Oct 8, 2014 at 2:56 PM, Ziller Eike
<eike.zil...@theqtcompany.com> wrote:
> On Oct 8, 2014, at 1:36 PM, Thiago A. Corrêa <thiago.cor...@gmail.com> wrote:

>> On Wed, Oct 8, 2014 at 5:10 AM, Ziller Eike
>> <eike.zil...@theqtcompany.com> wrote:
>>>
>>> QIcon does automatic loading of @2x images afair. QPixmap and QImage only 
>>> set the devicePixelRatio corresponding to the file name automatically, but 
>>> you have to define yourself if you want to load a @2x or not.
>>>
>>
>> This behavior isn't documented in QIcon[1].
>
> It actually is in 5.4:
> http://doc-snapshot.qt-project.org/qt5-5.4/qicon.html#addFile

> Eike Ziller, Senior Software Engineer - Digia, Qt

The doc says:

"If a high resolution version of the image exists (identified by the
suffix @2x on the base name),
it is automatically loaded and added with the device pixel ratio set
to a value of 2. "

What about support for @3x?
Is it inside or is it planned?

Thanks

Regards,
Robert
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to