Basic Qt widgets
Now, we will take a look at the default set of widgets available in Qt Designer. You can actually create custom widgets by yourself, but that's an advanced topic which is out of the scope of this book. Let's take a look at the first two categories listed on the widget box—Layouts
and Spacers
:

Layouts
and Spacers
are not really something that you can directly observe, but they can affect the positions and orientations of your widgets:
Vertical Layout
: A vertical layout widget lays out widgets in a vertical column, from top to bottom.Horizontal Layout
: A horizontal layout widget lays out widgets in a horizontal row, from left to right (or right to left for right-to-left languages).
Grid Layout
: A grid layout widget lays out widgets in a two-dimensional grid. Each widget can occupy more than one cell.Form Layout
: A form layout widget lays out widgets in a two-column field style. Just as the name implies, this type of layout is best suited for forms of input widgets.
Layouts
provided...