summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/t2/tutorial2.qml
blob: 08ea9eb3b5d40ce3cd63085f3fdc14c03359d021 (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
Rect {
    id: Page
    width: 480
    height: 200
    color: "white"
    Text {
        id: HelloText
        text: "Hello world!"
        font.size: 24
        font.bold: true
        y: 30
        anchors.horizontalCenter: Page.horizontalCenter
    }
    GridLayout {
        id: ColorPicker
        x: 0
        anchors.bottom: Page.bottom
        width: 120
        height: 50
        columns: 3
        rows: 2
        Cell {
            color: "#ff0000"
        }
        Cell {
            color: "#00ff00"
        }
        Cell {
            color: "#0000ff"
        }
        Cell {
            color: "#ffff00"
        }
        Cell {
            color: "#00ffff"
        }
        Cell {
            color: "#ff00ff"
        }
    }
}