diff options
| author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2020-06-03 15:27:07 +0200 |
|---|---|---|
| committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2020-08-19 15:01:45 +0200 |
| commit | e93ec716bf839686f7ffffc33958d90a58725e9b (patch) | |
| tree | 601cc36ee5a187160c220ad89f50f921c8d93b0d /src/concurrent/doc/snippets/snippets.pro | |
| parent | c3f74bdc3ffdc69dce17530f9fafb2d6d15b746b (diff) | |
High-DPI: Use correct DPI for QT_USE_PHYSICAL_DPI
Setting the QT_USE_PHYSICAL_DPI environment variable
will make Qt use physical DPI when determining the
screen scale factor, instead of logical DPI.
However, the code was using QScreen::physicalDotsPerInch(),
Whose return value is itself scaled by the device
pixel ratio. (See QTBUG-62649 for further discussion).
Use QPlatformScreen API instead and calculate the DPI
based on geometry() and physicalSize().
Pick-to: 5.15
Change-Id: Ifa29065c447b0d3431e0f14aacb5aafce61051c2
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/concurrent/doc/snippets/snippets.pro')
0 files changed, 0 insertions, 0 deletions
