summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/DynRect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/dynamic/DynRect.qml')
-rw-r--r--examples/declarative/dynamic/DynRect.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/declarative/dynamic/DynRect.qml b/examples/declarative/dynamic/DynRect.qml
new file mode 100644
index 0000000..06141ea
--- /dev/null
+++ b/examples/declarative/dynamic/DynRect.qml
@@ -0,0 +1,9 @@
+import Qt 4.6
+
+Item {
+ states: State{ name: "dying"; PropertyChanges{ target: newRect; opacity: 0 } }
+ transitions: Transition{
+ NumberAnimation{ properties: "opacity"; target: newRect; duration:500 }
+ }
+ Rectangle {color: "steelblue"; width: 100; height: 100; id: newRect }
+}