Vertical Layout arranges the selected widgets vertically, in a column one below the other. In the following application, you will learn the process of laying widgets in a vertical layout.
Using Vertical Layout
How to do it...
In this application, we will prompt the user to enter a name and email address. The labels and textboxes for entering names and email addresses, along with the submit button, will be arranged vertically one below the other via Vertical Layout. Here are the steps to create the application:
- Launch Qt Designer and create an application based on the Dialog without Buttons template, then add two QLabel, two QlineEdit, and one QPushButton widget to the form by dragging and dropping two Label, two Line Edit, and...