[Development] Qt for iOS: Management Retina vs Non-Retina Images
Ziller Eike
Eike.Ziller at theqtcompany.com
Wed Oct 8 13:56:25 CEST 2014
On Oct 8, 2014, at 1:36 PM, 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].
It actually is in 5.4:
http://doc-snapshot.qt-project.org/qt5-5.4/qicon.html#addFile
> Shouldn't it use
> QFileSelector[2] instead now? Since it's undocumented, couldn't this
> be changed before 6.0?
>
> [1] http://qt-project.org/doc/qt-5/qicon.html
> [2] http://qt-project.org/doc/qt-5/qfileselector.html
>
> Kind Regards,
> Thiago A. Correa
--
Eike Ziller, Senior Software Engineer - Digia, Qt
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Development
mailing list