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:

  1. Vertical Layout: A vertical layout widget lays out widgets in a vertical column, from top to bottom.
  2. Horizontal Layout: A horizontal layout widget lays out widgets in a horizontal row, from left ...

Get Hands-On GUI Programming with C++ and Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.