Update setHighDpiScaleFactorRoundingPolicy docs
The default is now passthrough. And let's not mention the environment variable overrides, as they are meant for internal testing. Pick-to: 6.0 Pick-to: 6.0.0 Change-Id: Ie2409e5411d4bdcdf041834cb5ca9e1215aa173a Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
05bb9b1016
commit
58afadc624
@ -3238,8 +3238,7 @@
|
||||
decide how non-integer scale factors (such as Windows 150%) are handled.
|
||||
|
||||
The active policy is set by calling QGuiApplication::setHighDdpiScaleFactorRoundingPolicy() before
|
||||
the application object is created, or by setting the QT_SCALE_FACTOR_ROUNDING_POLICY
|
||||
environment variable.
|
||||
the application object is created.
|
||||
|
||||
\sa QGuiApplication::setHighDpiScaleFactorRoundingPolicy()
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user