How it works...
You can see in the code that a Line Edit widget with the default objectName lineEdit property and the Label widget with the default objectName label property are placed on the form and are horizontally aligned using the horizontal layout with the default objectName property, horizontalLayout. On aligning the Label and Line Edit widgets, the horizontal space between the two widgets is reduced. So, a spacer is kept between the Label and Line Edit widgets. The second pair, the Label widget with the default objectName label_2 property and the Line Edit widget with the default objectName lineEdit_2 property, are horizontally aligned using the horizontal layout with the default objectName horizontalLayout_2 property. Then, the first ...
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