Wiki Markup |
---|
{alias:qhboxlayout} |
Name
qhboxlayout — layout manager that arranges widgets horizontally
...
See also qvboxlayout and qgridlayout.
Arguments
cmds
A block containing arguments, typically the widgets to be contained inside the layout.
Examples
Ex.1: QHBoxLayout
...
No Format | ||||
---|---|---|---|---|
| ||||
set w [qwidget]
qsetwindowtitle "QHBoxLayout"
qhboxlayout {
qlabel "Label 1"
qlabel "Label 2"
}
qshow $w
|
...
No Format | ||||
---|---|---|---|---|
| ||||
set w [qwidget]
qsetwindowtitle "Nested QHBoxLayout"
qhboxlayout {
qlabel "Label 1"
# Add two vertically positioned labels between "Label 1" and "Label 2"
qaddvboxlayout {
qlabel "Inner label 1"
qlabel "Inner label 2"
}
qlabel "Label 2"
}
qshow $w
|
...