> On 08 Oct 2014, at 13:36, Thiago A. Corrêa <thiago.cor...@gmail.com> wrote: > > Hi, > > 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]. 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 _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development