How to do it...

In this application, we will make a simple sign-in form, prompting the user to enter an email address and password, followed by clicking the Submit button. Below the Submit button, there will be two buttons, Cancel and Forgot Password. The application will help you understand how these widgets are arranged in a grid pattern. Following are the steps to create this application:

  1. Launch Qt Designer and create an application based on the Dialog without Buttons template, then add two QLabel, two QlineEdit, and three QPushButton widgets to the form by dragging and dropping two Label, two Line Edit, and three Push Button widgets on the form.
  2. Set the text property of the two Label widgets to Name and Email Address.
  1. Set the text ...

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.