summaryrefslogtreecommitdiffstats
path: root/doc/src/designer-manual.qdoc
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-05-04 12:21:10 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-05-04 12:21:10 (GMT)
commit4a079000243ed05ce37d3c7055b5bd56c7ccf85d (patch)
tree3bb9bf991e13a8e211cd9c56c0adb249ebe1a697 /doc/src/designer-manual.qdoc
parent5dec3808ed6724a096e5dfc579d37e8528de75e0 (diff)
parentc368a8ed6badab846c8e63c26d48b95788c12163 (diff)
downloadQt-4a079000243ed05ce37d3c7055b5bd56c7ccf85d.zip
Qt-4a079000243ed05ce37d3c7055b5bd56c7ccf85d.tar.gz
Qt-4a079000243ed05ce37d3c7055b5bd56c7ccf85d.tar.bz2
Merge commit 'origin/4.5'
Conflicts: src/gui/itemviews/qabstractitemview.cpp
Diffstat (limited to 'doc/src/designer-manual.qdoc')
-rw-r--r--doc/src/designer-manual.qdoc12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/src/designer-manual.qdoc b/doc/src/designer-manual.qdoc
index 97713b1..2706182 100644
--- a/doc/src/designer-manual.qdoc
+++ b/doc/src/designer-manual.qdoc
@@ -344,10 +344,14 @@
of a QLineEdit or the width and height of item view widgets. This is where
the widget size constraints -- \l{QWidget::minimumSize()}{minimumSize} and
\l{QWidget::maximumSize()}{maximumSize} constraints come into play. These
- are properties you can set in the property editor. Alternatively, to use
- the current size as a size constraint value, choose one of the
- \gui{Size Constraint} options from the widget's context menu. The layout
- will then ensure that those constraints are met.
+ are properties you can set in the property editor. For example, to override
+ the default \l{QWidget::}{sizeHint()}, simply set
+ \l{QWidget::minimumSize()}{minimumSize} and \l{QWidget::maximumSize()}
+ {maximumSize} to the same value. Alternatively, to use the current size as
+ a size constraint value, choose one of the \gui{Size Constraint} options
+ from the widget's context menu. The layout will then ensure that those
+ constraints are met. To control the size of your widgets via code, you can
+ reimplement \l{QWidget::}{sizeHint()} in your code.
The screenshot below shows the breakdown of a basic user interface designed
using a grid. The coordinates on the screenshot show the position of each