summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-31 14:45:43 +1000
committerBea Lam <bea.lam@nokia.com>2010-05-31 17:00:41 +1000
commite5cc765d2fa1ff68f1592ad475d6b8f4e5a6f667 (patch)
treee78d7116de14a056b8669f20cb12c597d8a69b5e /doc
parenta186682a9c0ca21cd36c0e79cd58f965115f3c10 (diff)
Document issues with rectangle border width of 1 where clipping is used
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/pics/rect-border-width.pngbin0 -> 356 bytes
-rw-r--r--doc/src/snippets/declarative/rect-border-width.qml19
2 files changed, 19 insertions, 0 deletions
diff --git a/doc/src/declarative/pics/rect-border-width.png b/doc/src/declarative/pics/rect-border-width.png
new file mode 100644
index 0000000000..c3c6c2ccb9
--- /dev/null
+++ b/doc/src/declarative/pics/rect-border-width.png
Binary files differ
diff --git a/doc/src/snippets/declarative/rect-border-width.qml b/doc/src/snippets/declarative/rect-border-width.qml
new file mode 100644
index 0000000000..27a241d198
--- /dev/null
+++ b/doc/src/snippets/declarative/rect-border-width.qml
@@ -0,0 +1,19 @@
+import Qt 4.7
+
+//![0]
+Rectangle {
+ width: 100; height: 100
+ color: "yellow"
+
+ Rectangle {
+ anchor.fill: parent
+ anchors.margins: 10
+ clip: true
+
+ Rectangle {
+ anchors.fill: parent
+ border.width: 1
+ }
+ }
+}
+//![0]