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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
import QtQuick 2.0
Rectangle {
width: 320
height: 480
property bool smoothing: true
Rectangle{
id: rect_0_0
width: 160
height: 160
x: 0
y: 0
BorderImage {
id: borderImage_0
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 10; border.top: 10
border.right: 10; border.bottom: 10
verticalTileMode: BorderImage.Stretch
anchors.centerIn: parent
}
Text {
anchors.top: borderImage_0.bottom
text: "mode: stretch"
z: 1
}
}
Rectangle{
id: rect_0_1
width: 160
height: 160
x: 160
y: 0
BorderImage {
id: borderImage_1
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 10; border.top: 10
border.right: 10; border.bottom: 10
verticalTileMode: BorderImage.Repeat
anchors.centerIn: parent
}
Text {
anchors.top: borderImage_1.bottom
text: "mode: repeat"
z: 1
}
}
Rectangle{
id: rect_1_0
width: 160
height: 160
x: 0
y: 160
BorderImage {
id: borderImage_2
smooth: smoothing
source: "../shared/sample_1.png"
width: 120; height: 120
border.left: 10; border.top: 10
border.right: 10; border.bottom: 10
verticalTileMode: BorderImage.Round
anchors.centerIn: parent
}
Text {
anchors.top: borderImage_2.bottom
text: "mode: round"
z: 1
}
}
}
|