summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-11-22 10:53:40 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-24 16:46:15 +0100
commit11bf824c03d07a2c4ac7f1d614351c532d7a52d6 (patch)
tree9239a7b43ffcd227299bccbfa9531f7f225a1d24
parent502b5b81784bd683b0571b1d72e76b3d786b98e1 (diff)
Add a note in the QScreen documentation about logical vs physical DPI.
Change-Id: I1d536711cbbc0ea8a21c6917e5e0066c1ad4ccae Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
-rw-r--r--src/gui/kernel/qscreen.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp
index 7d83cebd2b..682e42ad4c 100644
--- a/src/gui/kernel/qscreen.cpp
+++ b/src/gui/kernel/qscreen.cpp
@@ -61,6 +61,17 @@ public:
\class QScreen
\brief The QScreen class is used to query screen properties.
+ A note on logical vs physical dots per inch: physical DPI is based on the
+ actual physical pixel sizes when available, and is useful for print preview
+ and other cases where it's desirable to know the exact physical dimensions
+ of screen displayed contents.
+
+ Logical dots per inch are used to convert font and user interface elements
+ from point sizes to pixel sizes, and might be different from the physical
+ dots per inch. The logical dots per inch are sometimes user-settable in the
+ desktop environment's settings panel, to let the user globally control UI
+ and font sizes in different applications.
+
\inmodule QtGui
*/