summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/scene3d/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/scene3d/main.qml')
-rw-r--r--examples/qt3d/scene3d/main.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/qt3d/scene3d/main.qml b/examples/qt3d/scene3d/main.qml
index bed04161e..6419309a8 100644
--- a/examples/qt3d/scene3d/main.qml
+++ b/examples/qt3d/scene3d/main.qml
@@ -50,6 +50,18 @@ Item {
}
}
+ Text {
+ text: "Multisample: " + scene3d.multisample
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 10
+ anchors.horizontalCenter: parent.horizontalCenter
+
+ MouseArea {
+ anchors.fill: parent
+ onClicked: scene3d.multisample = !scene3d.multisample
+ }
+ }
+
Rectangle {
id: scene
width: Math.min(parent.width, parent.height) - 100
@@ -67,6 +79,7 @@ Item {
}
Scene3D {
+ id: scene3d
anchors.fill: parent
anchors.margins: 10
focus: true