summaryrefslogtreecommitdiffstats
path: root/examples/declarative/parallax/parallax.qml
blob: 9adcfd71c8e9efd5366144b1e993808033967a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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"
                }
            }

        }
    }

}