diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-11-27 11:56:10 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-11-27 19:07:11 +0000 |
commit | a4dd0e1831adec6c0357687f0a2b49ca89813c71 (patch) | |
tree | 656e500c1603d407daf65f7bd79ba18745143e62 /src/gui | |
parent | a754477b734661bc0850fb36b3fc4b55445ff2c2 (diff) |
Update setHighDpiScaleFactorRoundingPolicy docs
The default is now passthrough. And let's not mention the
environment variable overrides, as they are meant for internal
testing.
Change-Id: Ie2409e5411d4bdcdf041834cb5ca9e1215aa173a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
(cherry picked from commit 58afadc624cf284cfe93d6a5c85557ed6e4f9765)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 05933bac6a..c10b95e206 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -3633,14 +3633,11 @@ Qt::ApplicationState QGuiApplication::applicationState() ("small UI") or as 2x ("large UI"). See the Qt::HighDpiScaleFactorRoundingPolicy enum for a complete list of all options. - This function must be called before creating the application object, - and can be overridden by setting the QT_SCALE_FACTOR_ROUNDING_POLICY - environment variable. The QGuiApplication::highDpiScaleFactorRoundingPolicy() + This function must be called before creating the application object. + The QGuiApplication::highDpiScaleFactorRoundingPolicy() accessor will reflect the environment, if set. - The default value is Qt::HighDpiScaleFactorRoundingPolicy::Round. - On Qt for Android the default is Qt::HighDpiScaleFactorRoundingPolicy::PassThrough, - which preserves historical behavior from earlier Qt versions. + The default value is Qt::HighDpiScaleFactorRoundingPolicy::PassThrough. */ void QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy policy) { |