diff options
author | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-06-02 11:02:27 (GMT) |
---|---|---|
committer | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-06-02 11:02:45 (GMT) |
commit | 9b53bb583ca7e74c737683d85593e4a97107a777 (patch) | |
tree | aaf3cbccc0db9caa23c74457f2e7b6665f3147cd | |
parent | 7314c07a3e443b1d5349b419a03db8d41ca43f7e (diff) | |
download | Qt-9b53bb583ca7e74c737683d85593e4a97107a777.zip Qt-9b53bb583ca7e74c737683d85593e4a97107a777.tar.gz Qt-9b53bb583ca7e74c737683d85593e4a97107a777.tar.bz2 |
Doc - changing the "main layout" term to "top level widget's layout" to
preserve some consistency. Also added a screenshot of the Object
Insepector displaying a form where its widget has no top level layout.
Reviewed-By: TrustMe
-rw-r--r-- | doc/src/designer-manual.qdoc | 19 | ||||
-rw-r--r-- | doc/src/images/rgbController-no-toplevel-layout.png | bin | 0 -> 1343 bytes |
2 files changed, 12 insertions, 7 deletions
diff --git a/doc/src/designer-manual.qdoc b/doc/src/designer-manual.qdoc index 4b8de32..fc3adcf 100644 --- a/doc/src/designer-manual.qdoc +++ b/doc/src/designer-manual.qdoc @@ -465,18 +465,23 @@ spin boxes and sliders as well. The next step is to combine all three layouts into one \bold{main layout}. - It is important that your form has a main layout; otherwise, the widgets - on your form will not resize when your form is resized. To set the main - layout, \gui{Right click} anywhere on your form, outside of the three - separate layouts, and select \gui{Lay Out Horizontally}. Alternatively, you - could also select \gui{Lay Out in a Grid} -- you will still see the same - arrangement (shown below). + The main layout is the top level widget's (in this case, the QWidget) + layout. It is important that your top level widget has a layout; otherwise, + the widgets on your window will not resize when your window is resized. To + set the layout, \gui{Right click} anywhere on your form, outside of the + three separate layouts, and select \gui{Lay Out Horizontally}. + Alternatively, you could also select \gui{Lay Out in a Grid} -- you will + still see the same arrangement (shown below). \image rgbController-final-layout.png \note Main layouts cannot be seen on the form. To check if you have a main layout installed, try resizing your form; your widgets should resize - accordingly. + accordingly. Alternatively, you can take a look at \QD's + \gui{Object Inspector}. If your top level widget does not have a layout, + you will see the broken layout icon next to it, + \inlineimage rgbController-no-toplevel-layout.png + . When you click on the slider and drag it to a certain value, you want the spin box to display the slider's position. To accomplish this behavior, you diff --git a/doc/src/images/rgbController-no-toplevel-layout.png b/doc/src/images/rgbController-no-toplevel-layout.png Binary files differnew file mode 100644 index 0000000..0a9bc29 --- /dev/null +++ b/doc/src/images/rgbController-no-toplevel-layout.png |