summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/qml-intro/sequential-animation1.qml
blob: 125f99f2eb375cf248da04d8683a196bf3d64490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Qt 4.7

Rectangle {
    id: mainRec
    width:  600
    height: 400
    z: 0

    Image {
        id: image1
        source: "images/qt-logo.png"
        x: 20; y: 20 ; z: 1
        width: 100; height: 100
    }

    Image {
        id: image2
        source: "images/qt-logo.png"
        width: 100; height: 100
        x: (mainRec.width - 100)/2; y: (mainRec.height - 100)/2
        z: 2
    }
}