summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/rotation.qml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/declarative/rotation.qml')
-rw-r--r--doc/src/snippets/declarative/rotation.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/rotation.qml b/doc/src/snippets/declarative/rotation.qml
new file mode 100644
index 0000000..aaaebee
--- /dev/null
+++ b/doc/src/snippets/declarative/rotation.qml
@@ -0,0 +1,29 @@
+import Qt 4.6
+
+Rectangle {
+ width: 360; height: 80
+ color: "white"
+//! [0]
+ HorizontalLayout {
+ margin: 10
+ spacing: 10
+ Image { source: "pics/qt.png" }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0 angle: 18 }
+ }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0 angle: 36 }
+ }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0; angle: 54 }
+ }
+ Image {
+ source: "pics/qt.png"
+ transform: Rotation { origin.x: 30; axis.y: 60; axis.z: 0; angle: 72 }
+ }
+ }
+//! [0]
+}