summaryrefslogtreecommitdiffstats
path: root/examples/declarative/parallax/parallax.qml
blob: b2139ec22fa72b848730fe4f2fe2a4df68957801 (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
import Qt 4.6
import "../clock"

Rectangle {
    width: 320
    height: 480

    ParallaxView {
        anchors.fill: parent
        background: "pics/background.jpg"

        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"
            }
        }
    }

}