diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-08-19 01:30:53 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-08-19 01:30:53 (GMT) |
commit | 5f3ff0080213b09f3edc8faebf5b9eee73e4026a (patch) | |
tree | fd05d0f7b638bd1442125996ff5071c2ac237999 /examples/declarative/border-image | |
parent | 06bef623b0ae135ba539df1e4ae12267abd70784 (diff) | |
download | Qt-5f3ff0080213b09f3edc8faebf5b9eee73e4026a.zip Qt-5f3ff0080213b09f3edc8faebf5b9eee73e4026a.tar.gz Qt-5f3ff0080213b09f3edc8faebf5b9eee73e4026a.tar.bz2 |
more docs
Diffstat (limited to 'examples/declarative/border-image')
-rw-r--r-- | examples/declarative/border-image/example.qml | 31 |
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] + } +} |