From 3bf066bdad5b4a3cdcd7b7c79985d2eef74b598a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Johan=20S=C3=B8rvig?= Date: Tue, 24 Sep 2019 13:18:42 +0200 Subject: High-DPI: Document new config options Append to the existing list. Change-Id: I7435847e3029a607c36fb99bcef9a54f11142b65 Reviewed-by: Paul Wicking Reviewed-by: Friedemann Kleint --- doc/src/highdpi.qdoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit v1.2.3