summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/border-image.qml
blob: c4215cd15de33b64580f6995955d2dcfdf10fd2b (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
import Qt 4.6

Rectangle {
    id: page
    color: "white"
    width: 520; height: 280

    Row {
        anchors.centerIn: parent
        spacing: 50
//! [0]
        BorderImage {
            width: 180; height: 180
            border.left: 30; border.top: 30
            border.right: 30; border.bottom: 30
            horizontalTileMode: BorderImage.Stretch
            verticalTileMode: BorderImage.Stretch
            source: "content/colors.png"
        }

        BorderImage {
            width: 180; height: 180
            border.left: 30; border.top: 30
            border.right: 30; border.bottom: 30
            horizontalTileMode: BorderImage.Round
            verticalTileMode: BorderImage.Round
            source: "content/colors.png"
        }
//! [0]
    }
}