summaryrefslogtreecommitdiffstats
path: root/examples/declarative/parallax/parallax.qml
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-26 09:14:31 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-26 09:14:31 (GMT)
commit65c44a439ab1e21dbcf59e01cefabb35c9c21d72 (patch)
treeab461fa2f8fe151aa88dceea52be3cd267380c2b /examples/declarative/parallax/parallax.qml
parentdb3b330d85b7d28dbdc9dd3aabb7f345c60537b8 (diff)
downloadQt-65c44a439ab1e21dbcf59e01cefabb35c9c21d72.zip
Qt-65c44a439ab1e21dbcf59e01cefabb35c9c21d72.tar.gz
Qt-65c44a439ab1e21dbcf59e01cefabb35c9c21d72.tar.bz2
parallax example
Diffstat (limited to 'examples/declarative/parallax/parallax.qml')
-rw-r--r--examples/declarative/parallax/parallax.qml46
1 files changed, 46 insertions, 0 deletions
diff --git a/examples/declarative/parallax/parallax.qml b/examples/declarative/parallax/parallax.qml
new file mode 100644
index 0000000..9adcfd7
--- /dev/null
+++ b/examples/declarative/parallax/parallax.qml
@@ -0,0 +1,46 @@
+import Qt 4.6
+import "../clock"
+
+Rectangle {
+ width: 320
+ height: 480
+
+ ParallaxView {
+ anchors.fill: parent
+ background: "pics/background.jpg"
+
+ Row {
+ Item {
+ width: 320
+ height: 480
+
+ Clock {
+ anchors.centerIn: parent
+ }
+ }
+
+ Item {
+ width: 320
+ height: 480
+
+ Smiley {}
+ }
+
+ Item {
+ width: 320
+ height: 480
+
+ Loader {
+ anchors.centerIn: parent
+ width: 300; height: 460
+ clip: true
+ resizeMode: Loader.SizeItemToLoader
+
+ source: "../../../demos/declarative/samegame/samegame.qml"
+ }
+ }
+
+ }
+ }
+
+}