A horizontal layout arranges widgets next to each other in a row that is, widgets are horizontally aligned using Horizontal Layout. Let's understand this concept by making an application.
Using Horizontal Layout
How to do it...
In this application, we will prompt the user to enter an email address and password. The main focus of this recipe is to understand how two pairs of the Label and Line Edit widgets are horizontally aligned. Here is the step-by-step procedure to create this application:
- Let's create an application based on the Dialog without Buttons template and add two QLabel, two QlineEdit, and one QPushButton widget to the form by dragging and dropping two Label, two Line Edit, and a Push Button widget on the...