summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-09-24 13:18:42 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2019-09-24 14:41:45 +0200
commit3bf066bdad5b4a3cdcd7b7c79985d2eef74b598a (patch)
tree703b14dc96767ecdca0e4bf18609c012bc3273aa
parentcdcda09055c35b8faf08588a4bba5369571ce3c5 (diff)
High-DPI: Document new config options
Append to the existing list. Change-Id: I7435847e3029a607c36fb99bcef9a54f11142b65 Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--doc/src/highdpi.qdoc12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/highdpi.qdoc b/doc/src/highdpi.qdoc
index 7658f024f..679b2310d 100644
--- a/doc/src/highdpi.qdoc
+++ b/doc/src/highdpi.qdoc
@@ -203,6 +203,18 @@
actual window system coordinates, regardless of environment variables. This
attribute takes priority over Qt::AA_EnableHighDpiScaling.
+ \li The QT_ENABLE_HIGHDPI_SCALING environment variable, introduced in Qt 5.14,
+ enables automatic scaling based on the pixel density of the monitor. Replaces
+ QT_AUTO_SCREEN_SCALE_FACTOR.
+
+ \li The QT_SCALE_FACTOR_ROUNDING_POLICY environment variable and
+ QGuiApplication::highDpiScaleFactorRoundingPolicy API, introduced in Qt 5.14,
+ makes it possible to control if and how the device pixel ratio should be rounded
+ to the nearest integer. This is relevant for configurations like Windows at
+ 150% scale. Possible values are \c{Round}, \c{Ceil}, \c{Floor}, \c{RoundPreferFloor},
+ \c{PassThrough}. See the Qt::HighDpiScaleFactorRoundingPolicy enum documentation
+ for a full description of the options.
+
\li An experimental implementation of high-DPI scaling was introduced in Qt 5.4.
It was enabled by the environment variable \c QT_DEVICE_PIXEL_RATIO, which
could be set to a numerical scale factor or \c "auto". This variable is