[PyQt] Issue with icons on high-resolution displays

Thomas Robitaille thomas.robitaille at gmail.com
Sun Sep 13 21:38:31 BST 2015


On 13 September 2015 at 22:32, Florian Bruhin <me at the-compiler.org> wrote:
> * Thomas Robitaille <thomas.robitaille at gmail.com> [2015-09-13 15:09:49 +0200]:
>> Hi everyone,
>>
>> I am having issues with getting icons in QPushButtons to show up at full
>> resolution on HDPI/Retina displays. I wrote this up as a StackOverflow
>> question (since it was easier to embed screenshots there):
>>
>> http://stackoverflow.com/questions/32549455/hdpi-retina-icons-in-pyqt4-or-pyqt5
>>
>> Does anyone have any suggestions for how to solve this issue?
>
> It seems this was answered on SO in the meantime:
>
>     May be this will help -
>     http://stackoverflow.com/questions/26165823/retina-support-in-qml.
>     In other words, did you set AA_UseHighDpiPixmaps flag?

Yes, just to confirm, this works well with PyQt5. I'm assuming that
there is no way to do this on PyQt4 since Qt4 probably doesn't support
HiDPI displays?

Cheers,
Tom

>
> Florian
>
> --
> http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
>    GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
>          I love long mails! | http://email.is-not-s.ms/
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt


More information about the PyQt mailing list