[Development] Qt 6 not seeing the same DPI as Qt 5
Tor Arne Vestbø
Tor.arne.Vestbo at qt.io
Tue Nov 30 00:31:22 CET 2021
On 29 Nov 2021, at 23:43, Thiago Macieira <thiago.macieira at intel.com<mailto:thiago.macieira at intel.com>> wrote:
On Monday, 29 November 2021 13:20:58 PST Tor Arne Vestbø wrote:
If you know that the physical DPI being reported is correct you can use
QT_USE_PHYSICAL_DPI to override the behavior as documented.
I did, but that makes no difference:
$ QT_USE_PHYSICAL_DPI=1 ~/obj/qt/installed/bin/qtdiag | grep DPI
QT_USE_PHYSICAL_DPI="1"
Screens: 2, High DPI scaling: active
Physical DPI: 120.118,120 Logical DPI: 96,96 Subpixel_None
High DPI scaling factor: 2 DevicePixelRatio: 2
Physical DPI: 120.118,120 Logical DPI: 96,96 Subpixel_None
High DPI scaling factor: 2 DevicePixelRatio: 2
The priority matters, so perhaps you have set one of the other things we might pick up? Xft/DPI or Xft.dpi?
https://doc-snapshots.qt.io/qt6-dev/highdpi.html#configuring-x11
Cheers,
Tor Arne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20211129/4bb0a2b2/attachment-0001.html>
More information about the Development
mailing list