Doc: minor language edits
Task-number: QTBUG-60635 Change-Id: Ic1aef003be9cd08dc38021e5b4a4add8cabbfa98 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
This commit is contained in:
parent
e30d67ba27
commit
56a3cbc5c7
@ -67,11 +67,11 @@
|
|||||||
In the constructor, we first use the \c createMenu() function to
|
In the constructor, we first use the \c createMenu() function to
|
||||||
create and populate a menu bar and the \c createHorizontalGroupBox()
|
create and populate a menu bar and the \c createHorizontalGroupBox()
|
||||||
function to create a group box containing four buttons with a
|
function to create a group box containing four buttons with a
|
||||||
horizontal layout. Next we use the \c createGridGroupBox() function
|
horizontal layout. Next, we use the \c createGridGroupBox() function
|
||||||
to create a group box containing several line edits and a small text
|
to create a group box containing several line edits and a small text
|
||||||
editor which are displayed in a grid layout. Finally, we use the
|
editor which are displayed in a grid layout. Finally, we use the
|
||||||
\c createFormGroupBox() function to create a group box with
|
\c createFormGroupBox() function to create a group box with
|
||||||
three labels and three input fields: a line edit, a combo box and
|
three labels and three input fields: a line edit, a combo box, and
|
||||||
a spin box.
|
a spin box.
|
||||||
|
|
||||||
\snippet layouts/basiclayouts/dialog.cpp 1
|
\snippet layouts/basiclayouts/dialog.cpp 1
|
||||||
@ -111,7 +111,7 @@
|
|||||||
\snippet layouts/basiclayouts/dialog.cpp 4
|
\snippet layouts/basiclayouts/dialog.cpp 4
|
||||||
|
|
||||||
We use the QBoxLayout::addWidget() function to add the widgets to
|
We use the QBoxLayout::addWidget() function to add the widgets to
|
||||||
the end of layout. Each widget will get at least its minimum size
|
the end of the layout. Each widget will get at least its minimum size
|
||||||
and at most its maximum size. It is possible to specify a stretch
|
and at most its maximum size. It is possible to specify a stretch
|
||||||
factor in the \l {QBoxLayout::addWidget()}{addWidget()} function,
|
factor in the \l {QBoxLayout::addWidget()}{addWidget()} function,
|
||||||
and any excess space is shared according to these stretch
|
and any excess space is shared according to these stretch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user