In this recipe, we will learn to create a sign-in form that will ask for the email address and password of the user for authentication. This sign-in form is different from the usual sign-in form, in the sense that it is a dockable form. That is, you can dock this sign-in form to any of the four sides of the window—top, left, right, and bottom and can even use it as a floatable form. This dockable sign-in form will be created using the Dock widget, so let's get a quick idea about the Dock widget.
Creating a dockable and floatable sign-in form
Getting ready
To create a detachable set of widgets or tools, you need a Dock widget. A Dock widget is created with the QDockWidget class and is a container that has a title bar...