summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 13:26:11 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-11-06 13:26:11 (GMT)
commite59c34d93f99530c4b3c69ac7ef6e61d033edef6 (patch)
treedbc8c2950c06eba50e9d1e33f8bf398b7544bf42 /src/gui/graphicsview
parent2342a1d64525a6635a1bd4c4cccd7df5df43b721 (diff)
downloadQt-e59c34d93f99530c4b3c69ac7ef6e61d033edef6.zip
Qt-e59c34d93f99530c4b3c69ac7ef6e61d033edef6.tar.gz
Qt-e59c34d93f99530c4b3c69ac7ef6e61d033edef6.tar.bz2
docs: Add a section about known issues for the anchor layout.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout.cpp21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
index 56d70e1..872ec3c 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
@@ -83,10 +83,8 @@
\clearfloat
\section1 Size Hints and Size Policies in an Anchor Layout
- QGraphicsAnchorLayout respects each item's size hints and size policies. However it does
- not currently respect their stretch factors. This might change in the future, so avoid
- using stretch factors in anchor layouts if you want to avoid any future regressions in
- behavior.
+ QGraphicsAnchorLayout respects each item's size hints and size policies.
+ Note that there are some properties of QSizePolicy that are \l{Known issues}{not respected}.
\section1 Spacing within an Anchor Layout
@@ -101,6 +99,21 @@
If the spacing is negative, the items will overlap to some extent.
+
+ \section1 Known issues
+ There are some features that QGraphicsAnchorLayout currently does not support.
+ This might change in the future, so avoid using these features if you want to
+ avoid any future regressions in behaviour:
+ \list
+
+ \o Stretch factors are not respected.
+
+ \o QSizePolicy::ExpandFlag is not respected.
+
+ \o Height for width is not respected.
+
+ \endlist
+
\sa QGraphicsLinearLayout, QGraphicsGridLayout, QGraphicsLayout
*/