summaryrefslogtreecommitdiffstats
path: root/examples/3dstudioruntime2/simpleqml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/3dstudioruntime2/simpleqml/main.qml')
-rw-r--r--examples/3dstudioruntime2/simpleqml/main.qml32
1 files changed, 0 insertions, 32 deletions
diff --git a/examples/3dstudioruntime2/simpleqml/main.qml b/examples/3dstudioruntime2/simpleqml/main.qml
index 4d47a47..0490a5a 100644
--- a/examples/3dstudioruntime2/simpleqml/main.qml
+++ b/examples/3dstudioruntime2/simpleqml/main.qml
@@ -98,33 +98,6 @@ Rectangle {
id: barrelRef
elementPath: "Barrel" // or Scene.Layer.Barrel but as long as it's unique the name's good enough
}
-
- // Let's try out a QML subpresentation defined in-line, i.e. no separate .qml file.
- SubPresentationSettings {
- qmlStreams: [
- QmlStream {
- presentationId: "embeddedQmlScene"
- Rectangle {
- color: "white"
- Rectangle {
- color: "red"
- width: parent.width * 0.8
- height: parent.height * 0.8
- anchors.centerIn: parent
- Text {
- anchors.centerIn: parent
- text: "Hello from\nembedded Qt Quick"
- color: "white"
- }
- NumberAnimation on rotation {
- from: 0; to: 360; duration: 10000
- loops: Animation.Infinite
- }
- }
- }
- }
- ]
- }
}
ignoredEvents: mouseEvCb.checked ? Studio3D.EnableAllEvents : (Studio3D.IgnoreMouseEvents | Studio3D.IgnoreWheelEvents)
onRunningChanged: console.log("running: " + s3d.running)
@@ -214,11 +187,6 @@ Rectangle {
focusPolicy: Qt.NoFocus
}
Button {
- text: "Fire event"
- onClicked: s3dpres.fireEvent("Scene.Layer.Camera", "customCameraEvent") // in actionevent.uip this will change the sphere's color
- focusPolicy: Qt.NoFocus
- }
- Button {
text: "Toggle camera"
onClicked: {
var v = s3dpres.getAttribute("Scene.Layer.Camera", "eyeball")