summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/declarative/borderimage.qml
blob: 9c4247ed502f69d12205a1124d875fb12f7f655f (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
import Qt 4.7

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

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

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