Qt Layouts

The layouts define the way widgets are layed out on the canvas.

QFormLayout

Ref: C++ - PySide

qformlayout-win

The QFormLayout class manages forms of input widgets and their associated labels.

QFormLayout is a convenience layout class that lays out its children in a two-column form. The left column consists of labels and the right column consists of "field" widgets (line editors, spin boxes, etc.).


QGridLayout

Ref: C++ - PySide

QGridLayout-1

The QGridLayout class lays out widgets in a grid.


QHBoxLayout

Ref: C++ - PySide

qhboxlayout-with-5-children

The QHBoxLayout class lines up widgets horizontally.

This class is used to construct horizontal box layout objects. See QBoxLayout for details.


QStackedLayout

Ref: C++ - PySide

QStackedLayout-1

The QStackedLayout class provides a stack of widgets where only one widget is visible at a time.

QStackedLayout can be used to create a user interface similar to the one provided by QTabWidget. There is also a convenience QStackedWidgetclass built on top of QStackedLayout.


QTabWidget

Ref: C++ - PySide

windows-tabwidget

The QTabWidget class provides a stack of tabbed widgets.


QVBoxLayout

Ref: C++ - PySide

qvboxlayout-with-5-children

The QVBoxLayout class lines up widgets vertically.

This class is used to construct vertical box layout objects. See QBoxLayout for details.