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:

  1. 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 one Push Button widget onto the form.
  2. Set the text property of the two Label widgets to Name and Email Address.
  3. Set the text property of the Push Button widget to Submit. Because the purpose of this application is to understand ...

Get Qt5 Python GUI Programming Cookbook 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.