aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/window
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/window')
-rw-r--r--examples/quick/window/ScreenInfo.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/quick/window/ScreenInfo.qml b/examples/quick/window/ScreenInfo.qml
index e4abc8d69d..e422a51a71 100644
--- a/examples/quick/window/ScreenInfo.qml
+++ b/examples/quick/window/ScreenInfo.qml
@@ -79,6 +79,9 @@ Item {
Text { text: "dimensions" }
Text { text: Screen.width + "x" + Screen.height }
+ Text { text: "pixel density" }
+ Text { text: Screen.pixelDensity.toFixed(2) + " dots/mm" }
+
Text { text: "logical pixel density" }
Text { text: Screen.logicalPixelDensity.toFixed(2) + " dots/mm" }