Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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
bgColor#eeeeee
borderWidth1

set w [qwidget]
qsetwindowtitle "QHBoxLayout"
qhboxlayout {
	qlabel "Label 1"
	qlabel "Label 2"
}
qshow $w

...

No Format
bgColor#eeeeee
borderWidth1

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

...