Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.4.1
-
None
Description
On windows, Qt is by default, "Per-Monitor DPI Aware", as described there:
https://doc-snapshots.qt.io/qt5-5.4/highdpi.html
But QStyleHelper::dpiScaled(qreal value) which is used in many places of Qt, relies on the primary screen's DPI, not on the effective device DPI (as qt_effective_device_pixel_ratio does, (see qtbase\src\gui\image\qicon.cpp:118).
This means, for example, in a setup with one UltraHD screen and one standard screen, sizes are not proper on the non-primary screen.
Attachments
Issue Links
- relates to
-
QTBUG-40277 Adapt styles to High DPI
- Closed
-
QTBUG-53022 HighDPi: Update scale factor setting for devicePixelRatio scaling (AA_EnableHighDpiScaling)
- Closed
- resulted in
-
QTBUG-82356 Calling QStyle::pixelMetric without style options lead to DPI scaling issues
- Closed