[Development] Pixelated UI elements in Windows HiDPI mode (5.6)

Sorvig Morten Morten.Sorvig at theqtcompany.com
Wed Nov 11 13:51:44 CET 2015

> On 11 Nov 2015, at 01:40, Adam Light <aclight at gmail.com> wrote:
> I built Qt 5.6 (latest from the 5.6 git branch as of this morning) and tested our application with the build on Windows 10. I'm calling 
> QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
> before the QApplication is created.
> I don't have an actual High DPI monitor so I've been testing by clicking the "scaling level" link in the Display control panel applet and setting the scaling factor to 200%. I then click OK, Apply, log out of my account, and log back in.

You can also set the QT_SCALE_FACTOR environment variable for quick testing like like this.  (Set it to 2, not 200%.)

> First of all, thanks to everyone who's been involved in improving the HiDPI code for Qt 5.6. HiDPI is much better now in 5.6 compared to 5.5.
> I've noticed that a lot of the UI elements that look like they're using icons for which a HiDPI version is not being used, including:
>  * radio/check buttons
>  * arrows on combo boxes, tool buttons, scroll bars, tab widgets
>  * The ? and X icon of QMdiSubwindow
>  * The clear button (grey X) of a QLineEdit

This could be an nice opportunity for a contribution from someone with artistic ambitions.


More information about the Development mailing list