summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/declarative/anchor-layout.qdoc6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/src/declarative/anchor-layout.qdoc b/doc/src/declarative/anchor-layout.qdoc
index 60eefe0..f3c0f4a 100644
--- a/doc/src/declarative/anchor-layout.qdoc
+++ b/doc/src/declarative/anchor-layout.qdoc
@@ -57,10 +57,12 @@ Rectangle { id: Rect3; x: 150; ... }
For performance reasons, you can only anchor an item to its siblings and direct parent. For example, the following anchor would be considered invalid and would produce a warning:
\badcode
-Item { id: group1 }
+Item {
+ id: Group1
Rectangle { id: Rect1; ... }
}
-Item id: group2">
+Item {
+ id: Group2
Rectangle { id: Rect2; anchors.left: Rect1.right; ... } // invalid anchor!
}
\endcode