Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 6.2, 6.3
-
Fix Version/s: 6.2.1, 6.3.0 Alpha
-
Component/s: GUI: High-DPI
-
Labels:None
-
Commits:2e73ff10797b9b069cf7abd8c353ad60bd6a088a (qt/qtbase/dev) d16e68f20f0e2739f80ce4ebccd9761686bff544 (qt/qtbase/6.2.1) 45878a7aef2ac773423b01719ffe1490b9ecbf1f (qt/qtbase/6.2)
Description
envDpiAdjustmentPolicy is incorrectly resolved from envScaleFactorRoundingPolicy:
This resulted in QT_SCALE_FACTOR_ROUNDING_POLICY="Round" overriding QT_DPI_ADJUSTMENT_POLICY="AdjustDpi" and wrong warning message:
Unknown DPI adjustment policy: Round. Supported values are: AdjustDpi, DontAdjustDpi, AdjustUpOnly.
More critically, if only QT_DPI_ADJUSTMENT_POLICY was set, Qt will crash since it was trying to read from a null envScaleFactorRoundingPolicy.