[Development] Qt for iOS: Management Retina vs Non-Retina Images

Robert Iakobashvili coroberti at gmail.com
Wed Feb 18 10:59:41 CET 2015

On Wed, Oct 8, 2014 at 2:56 PM, Ziller Eike
<Eike.Ziller at theqtcompany.com> wrote:
> On Oct 8, 2014, at 1:36 PM, Thiago A. CorrĂȘa <thiago.correa at gmail.com> wrote:

>> On Wed, Oct 8, 2014 at 5:10 AM, Ziller Eike
>> <Eike.Ziller at 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?



More information about the Development mailing list