From d62667f43dcd535d9315394c4ffb2faec44684fe Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 28 Sep 2016 11:41:27 +0200 Subject: spanning-screen: show how a real multi-display system would do it Change-Id: I04cd0a4699fae119a563f2db0b70701a617e21dc Reviewed-by: Shawn Rutledge --- examples/wayland/spanning-screens/main.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/wayland/spanning-screens/main.qml b/examples/wayland/spanning-screens/main.qml index 32dc11f33..ae6815c9d 100644 --- a/examples/wayland/spanning-screens/main.qml +++ b/examples/wayland/spanning-screens/main.qml @@ -39,7 +39,7 @@ ****************************************************************************/ import QtQuick 2.6 -import QtQuick.Window 2.2 +import QtQuick.Window 2.3 import QtWayland.Compositor 1.0 WaylandCompositor { @@ -55,6 +55,11 @@ WaylandCompositor { visible: true color: "#1337af" Text { text: "Top screen" } + + // Enable the following to make the output target an actual screen, + // for example when running on eglfs in a multi-display embedded system. + + // targetScreen: Qt.application.screens[0] } } @@ -68,6 +73,11 @@ WaylandCompositor { visible: true color: "#1abacc" Text { text: "Bottom screen" } + + // Enable the following to make the output target an actual screen, + // for example when running on eglfs in a multi-display embedded system. + + // targetScreen: Qt.application.screens[1] } } -- cgit v1.2.3