summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-31 04:45:43 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-05-31 07:00:41 (GMT)
commite5cc765d2fa1ff68f1592ad475d6b8f4e5a6f667 (patch)
treee78d7116de14a056b8669f20cb12c597d8a69b5e /doc/src
parenta186682a9c0ca21cd36c0e79cd58f965115f3c10 (diff)
downloadQt-e5cc765d2fa1ff68f1592ad475d6b8f4e5a6f667.zip
Qt-e5cc765d2fa1ff68f1592ad475d6b8f4e5a6f667.tar.gz
Qt-e5cc765d2fa1ff68f1592ad475d6b8f4e5a6f667.tar.bz2
Document issues with rectangle border width of 1 where clipping is used
Diffstat (limited to 'doc/src')
-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 0000000..c3c6c2c
--- /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 0000000..27a241d
--- /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]