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

Morten Johan Sørvig morten.sorvig at digia.com
Wed Oct 8 14:12:49 CEST 2014


> On 08 Oct 2014, at 13:36, Thiago A. Corrêa <thiago.correa at gmail.com> wrote:
> 
> Hi,
> 
> 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]. Shouldn't it use
> QFileSelector[2] instead now? Since it's undocumented, couldn't this
> be changed before 6.0?

The problem with QFileSelector is that it lives in QtCore and that the image should be selected based on the target paintdevice/window/screen. 

There are certainly divergent opinions on whether “@2x” is a good idea or not. Do we want to look at alternatives? 

Morten






More information about the Development mailing list