summaryrefslogtreecommitdiffstats
path: root/examples/declarative/border-image/example.qml
blob: 8f974e171ade68cc76004f62ab6d05af2b0848fa (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

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

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