Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0 Beta
-
Windows 10, High DPI (144 or 192 dpi)
-
5c60e4b8f9cc88e48f5e7652eefe90e1366ae23d
Description
A lot of the elements of the Windows style (Windows Vista in particular) do not look very good on a High DPI display. I've tested this using Qt 5.6 (from November 10, 2015) on Windows 10. I don't have a High DPI monitor so I'm having the OS simulate a high DPI display by opening the Display control panel, selecting the "set a custom scaling level" link, setting to 200% (or 150%), clicking OK, then clicking Apply, and then logging out and back in.
Note that I get much better results using this method than by setting the QT_SCALE_FACTOR environment variable to 2. Apparently the Windows style doesn't support scaling, so this isn't surprising.
In my application, I am making the following call before the QApplication object is constructed:
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
I've attached a screen shot of the qtbase/examples/widgets/styles/styles.pro example using Windows Vista style. Note that before compiling the example, I added the call to QApplication::setAttribute(Qt::AA_EnableHighDpiScaling).
The screen shot also shows a few other elements I noticed don't look very good but which were not used in the styles example.
NOTE: I recommend that you download the attached screenshot and view it on Windows at full resolution. Otherwise it's hard to see how pixelated some of the images are.
Attachments
Issue Links
- is duplicated by
-
QTBUG-51981 Windows 7: High DPI, ugly interface
- Closed
- is required for
-
QTBUG-46615 Implement High DPI scaling v2 (5.6)
- Closed
- relates to
-
QTBUG-55644 QToolBar extension button icon is too small on high DPI display
- Closed
-
QTBUG-58611 Qt 6: Use qreal in QtWidgets drawing/styles code
- Reported
-
QTBUG-40277 Adapt styles to High DPI
- Closed
-
QTBUG-44478 Wrong display of checkboxes on Windows 7 with classic theme and hi DPI
- Reported
-
QTBUG-49745 Windows: Application look is corrupted after it has been automatically moved to primary screen by Windows when unplugging the monitor
- Reported
-
QTBUG-52452 High DPI painting errors for widgets in scroll area if QT_SCALE_FACTOR is a point number > 1
- Closed
-
QTBUG-64890 A list of per-monitor high DPI support issues on Windows
- Closed
-
QTBUG-64708 MDI child window title does not properly scale with high dpi
- Closed
-
QTBUG-64709 Windows: MDI application leaves an empty area between toolbar and filemenu on high dpi if MDI child menu is visible
- Closed
- replaces
-
QTCREATORBUG-16853 QtCreator widget style on high dpi displays
- Closed