diff options
author | Hxcan Cai <caihuosheng@gmail.com> | 2021-11-07 18:22:35 +0800 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-11-02 18:13:39 +0000 |
commit | 27865904fceee80d26d42b526a3190a52342936f (patch) | |
tree | 2862750b5d7419a28ed598ef276b2d8c87a3c01e | |
parent | 1a81eca1176199a641bfcb98ec8ebf8e9528e800 (diff) | |
download | qtdoc-27865904fceee80d26d42b526a3190a52342936f.tar.gz |
Fix an example in documentation, Screen.pixelDensity
Change-Id: I5b7ad1f67eae915bc1d4e1f6dfe6ae22fba0b07d
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit a6e1592ccf10565a5ba728ecee4c3d385b1a2a03)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | doc/src/howtos/scalabilityintro.qdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/howtos/scalabilityintro.qdoc b/doc/src/howtos/scalabilityintro.qdoc index 0f12ae58..b82a747d 100644 --- a/doc/src/howtos/scalabilityintro.qdoc +++ b/doc/src/howtos/scalabilityintro.qdoc @@ -203,16 +203,16 @@ You can use bindings to handle low and high pixel density on platforms that do not have automatic support for it (like Android, \macos and iOS do). - The following code snippet uses the \l{Screen}{Screen.PixelDensity} + The following code snippet uses the \l{Screen}{Screen.pixelDensity} attached property to specify different images to display on screens with low, high, or normal pixel density: \code Image { source: { - if (Screen.PixelDensity < 40) + if (Screen.pixelDensity < 40) "image_low_dpi.png" - else if (Screen.PixelDensity > 300) + else if (Screen.pixelDensity > 300) "image_high_dpi.png" else "image.png" |