How it works...
You can see in the code that a Line Edit widget with the default objectName lineEdit property and a Label widget with the default objectName labels property is placed on the form. Similarly, a second pair, a Label widget with the default objectName label_2 property and a Line Edit widget with the default objectName lineEdit_2 property are placed on the form. The two push buttons with the object names, pushButton and pushButton_2, are placed on the form. All six widgets are selected and aligned in a two-column format using the Form Layout widget with the default objectName formLayout property.
On running the application, you will find that the two pairs of Label and Line Edit widgets, and the Cancel and Submit buttons, are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access