diff options
author | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-05-04 11:30:07 (GMT) |
---|---|---|
committer | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-05-04 11:31:05 (GMT) |
commit | f51ce7c1b349b31f61df48786148c8b3525e2a2c (patch) | |
tree | 5de6cdd2200119da58872bfef27e57343ff3d74f /doc | |
parent | e223a450ce57a7dc627e0eac14cea019f99fe601 (diff) | |
download | Qt-f51ce7c1b349b31f61df48786148c8b3525e2a2c.zip Qt-f51ce7c1b349b31f61df48786148c8b3525e2a2c.tar.gz Qt-f51ce7c1b349b31f61df48786148c8b3525e2a2c.tar.bz2 |
Doc - Clarifying how to override a Widget's size hint in the Getting to
Know Qt Designer document.
Task-number: 165435
Reviewed-by: Friedemann Kleint <friedemann.kleint@nokia.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/designer-manual.qdoc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/src/designer-manual.qdoc b/doc/src/designer-manual.qdoc index e10a5be..03b74e6 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 |