diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-05-31 04:45:43 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-05-31 07:00:41 (GMT) |
commit | e5cc765d2fa1ff68f1592ad475d6b8f4e5a6f667 (patch) | |
tree | e78d7116de14a056b8669f20cb12c597d8a69b5e /doc/src | |
parent | a186682a9c0ca21cd36c0e79cd58f965115f3c10 (diff) | |
download | Qt-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.png | bin | 0 -> 356 bytes | |||
-rw-r--r-- | doc/src/snippets/declarative/rect-border-width.qml | 19 |
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 Binary files differnew file mode 100644 index 0000000..c3c6c2c --- /dev/null +++ b/doc/src/declarative/pics/rect-border-width.png 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] |