[Interest] How are High DPI Icons supposed to work?

Julius Bullinger Julius.Bullinger at asctec.de
Tue Sep 29 10:19:43 CEST 2015


On 29/09/15 08:51, Hamish Moffatt wrote:
> On 29/09/15 16:27, Julius Bullinger wrote:
>> They are only used where I explicitly requested the @2x icon. Maybe I misunderstand the whole thing,  but I was under the impression that the icon at 2x.png file should be used transparently if icon.png is requested in a High DPI case.
>>
>> So, I expected _both_ lower buttons to use the same icon at 2x.png, even though it's only explicitly set in one of those.
>>
>> Otherwise, what would be the advantage of using @2x icons if I had to manually distinguish between high and low DPR anyway?
> Oh - QIcon does do that, but QPixmap does not.

Ah, so I misunderstood the documentation. Switching to QIcon loads the correct @2x icon. Thank you very much!

Best Regards,
Julius



More information about the Interest mailing list