diff options
Diffstat (limited to 'examples/declarative/parallax/parallax.qml')
-rw-r--r-- | examples/declarative/parallax/parallax.qml | 46 |
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" + } + } + + } + } + +} |