How to do it...

Let's get started by following these steps:

  1. We need to design the layout of the graphical login screen before we start doing anything. Planning is very important in order to produce good software. The following is a sample layout design I made to show you how I imagine the login screen will look. Just a simple line drawing like this is sufficient as long as it conveys the message clearly:

  1. Go back to Qt Designer again.
  2. We will be placing the widgets at the top panel first, then the logo and the login form beneath it.
  3. Select the main window and change its width and height from 400 and 300 to 800 and 600, respectively, because ...

Get Qt5 C++ GUI Programming Cookbook - Second Edition 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.