Qt Widgets includes a robust layout system to control the presentation of widgets on the display. Layouts are basically similar to widgets; they can be placed on an application, get named, become a parent to other widgets, and many others.
However, unlike widgets, their sole purpose is for managing the widgets and their positions in your application. The following screenshot illustrates the purpose of layouts. Do note that we're only showing one type of layout here (a vertical layout), and there are many other types of layouts that we will talk about later:
In Qt Creator Designer, you can pick from the following layouts:
- QBoxLayout: This lays out its view children horizontally or vertically.
- QHBoxLayout: This lays out its view children horizontally.
- QVBoxLayout: This lays out its view children vertically.
- QFormLayout: This lays out...