aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2023-10-19 16:36:34 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2023-10-23 10:40:00 +0000
commit86e8676bec36b3dfbb5faf529545753d4988c6c3 (patch)
tree901fb92d3f8c6ec4374025bdb3f3ac8932d35334
parent76bcd85f215f8256230132df816c6d9eb89ec77d (diff)
Doc: Describe setting DPI rounding policy
Task-number: QTCREATORBUG-29392 Change-Id: I45eef9d1282f7df3f75f08ff55745c4205f553d9 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r--doc/qtcreator/images/qtcreator-preferences-environment-interface.webpbin5980 -> 6132 bytes
-rw-r--r--doc/qtcreator/src/howto/creator-how-to-set-high-dpi-scaling.qdoc17
2 files changed, 10 insertions, 7 deletions
diff --git a/doc/qtcreator/images/qtcreator-preferences-environment-interface.webp b/doc/qtcreator/images/qtcreator-preferences-environment-interface.webp
index d6d5098bc6..a03cb3d579 100644
--- a/doc/qtcreator/images/qtcreator-preferences-environment-interface.webp
+++ b/doc/qtcreator/images/qtcreator-preferences-environment-interface.webp
Binary files differ
diff --git a/doc/qtcreator/src/howto/creator-how-to-set-high-dpi-scaling.qdoc b/doc/qtcreator/src/howto/creator-how-to-set-high-dpi-scaling.qdoc
index c0b2d4d6be..103565ef95 100644
--- a/doc/qtcreator/src/howto/creator-how-to-set-high-dpi-scaling.qdoc
+++ b/doc/qtcreator/src/howto/creator-how-to-set-high-dpi-scaling.qdoc
@@ -15,27 +15,30 @@
\title Set high DPI scaling
The operating systems that \QC supports implement high dots-per-inch (DPI)
- scaling at varying levels. Therefore, \QC handles high DPI scaling
- differently on different operating systems:
+ scaling at varying levels. Therefore, \QC handles \l{High DPI}{high DPI}
+ scaling differently on different operating systems:
\list
\li On \macos, \QC forces high DPI scaling, which means that it allows
Qt to use the system scaling factor as the \QC scaling factor.
- \li On Windows, if you do not set \l{High DPI}
- {scaling environment variables}, \QC instructs Qt to detect the
- scaling factor and use it as the \QC scaling factor.
\li On Linux, \QC leaves it to the user to enable high DPI scaling
because the process varies so much on different distributions
and windowing systems that it cannot be reliably done automatically.
\endlist
- To override the default approach and always enable high DPI scaling:
+ Setting the scale factor or DPI to the exact physical display DPI may not
+ give good visual results due to the fractional scaling involved.
+ \l {Qt::HighDpiScaleFactorRoundingPolicy}{Rounding} the scale factor to 25%
+ increments can improve the results.
+
+ To set the DPI rounding policy:
\list 1
\li Select \preferences >
\uicontrol Environment > \uicontrol Interface.
\image qtcreator-preferences-environment-interface.webp {Interface tab in Environment preferences}
- \li Select \uicontrol {Enable high DPI scaling}.
+ \li In \uicontrol {DPI rounding policy}, select an option to round
+ DPI up or down.
\li Restart \QC to have the change take effect.
\endlist
*/