diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-09-28 11:41:27 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2016-10-11 08:22:03 +0000 |
commit | d62667f43dcd535d9315394c4ffb2faec44684fe (patch) | |
tree | 7f391eabd2ee560d5681bb760d43e8507e91c0ea /examples/wayland | |
parent | ad19b0e9d2ef499fcec905cbc969dee2f1ffdca7 (diff) |
spanning-screen: show how a real multi-display system would do it
Change-Id: I04cd0a4699fae119a563f2db0b70701a617e21dc
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/wayland')
-rw-r--r-- | examples/wayland/spanning-screens/main.qml | 12 |
1 files changed, 11 insertions, 1 deletions
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] } } |