summaryrefslogtreecommitdiffstats
path: root/examples/declarative/border-image/example.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/border-image/example.qml')
-rw-r--r--examples/declarative/border-image/example.qml31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/declarative/border-image/example.qml b/examples/declarative/border-image/example.qml
new file mode 100644
index 0000000..10daf47
--- /dev/null
+++ b/examples/declarative/border-image/example.qml
@@ -0,0 +1,31 @@
+import Qt 4.6
+
+Rect {
+ 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]
+ }
+}