summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-03-20 11:49:19 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-03-20 15:31:03 +0000
commit2a585998e624b32a1679c71e325df151bce80653 (patch)
tree5d806ec1d9bfaeb73c27dda75080d218a113c36a /examples
parent40b17bc608858d55386f8353f22a7078574ba61e (diff)
more API: go to time, slide by name, get/setAttribte
Change-Id: I43cfd846fc2c37f27d50995920094ab4c2e31b4d Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/3dstudioruntime2/simpleqml/main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/3dstudioruntime2/simpleqml/main.qml b/examples/3dstudioruntime2/simpleqml/main.qml
index 0447ed4..fd465fc 100644
--- a/examples/3dstudioruntime2/simpleqml/main.qml
+++ b/examples/3dstudioruntime2/simpleqml/main.qml
@@ -153,6 +153,13 @@ Rectangle {
// beyond my modest skills, apparently.
onClicked: s3dpres.fireEvent("Scene.Layer.Camera", "customCameraEvent") // in actionevent.uip this will change the sphere's color
}
+ Button {
+ text: "Toggle camera"
+ onClicked: {
+ var v = s3dpres.getAttribute("Scene.Layer.Camera", "eyeball")
+ s3dpres.setAttribute("Scene.Layer.Camera", "eyeball", !v)
+ }
+ }
}
Text {