summaryrefslogtreecommitdiffstats
path: root/examples/declarative/behaviours/MyRect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/behaviours/MyRect.qml')
-rw-r--r--examples/declarative/behaviours/MyRect.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/declarative/behaviours/MyRect.qml b/examples/declarative/behaviours/MyRect.qml
new file mode 100644
index 0000000..a272e1f
--- /dev/null
+++ b/examples/declarative/behaviours/MyRect.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+
+Rectangle {
+ radius: 15
+ border.color: "black"
+ width: 100
+ height: 100
+ id: page
+ MouseRegion {
+ anchors.fill: parent
+ onClicked: { bluerect.parent = page; bluerect.x=0 }
+ }
+}