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
For Gerrit Dashboard: QTBUG-45055 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
121977,6 | Diaglib: Add class DebugProxyStyle. | dev | qt/qtbase | Status: MERGED | +2 | 0 |
124275,16 | Widget style: Use per-screen DPI in QStyleHelper::dpiScaled() | dev | qt/qtbase | Status: ABANDONED | +2 | 0 |
258265,3 | QStyle/QWidget: Avoid repetitive invocation of QStyleHelper::dpiScaled() | dev | qt/qtbase | Status: MERGED | +2 | 0 |
271429,5 | Widget style: Use per-screen DPI in QStyleHelper::dpiScaled() | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |