Let's make a small sign-in form in the Dock widget that will prompt the user for their email address and password. Being dockable, this sign-in form can be moved anywhere on the screen and can be made floatable. Here are the steps to create this application:
- Launch Qt Designer and create a new Main Window application.
- Drag and drop a Dock widget onto the form.
- Drag and drop the widgets that you want to be available in dock areas or as floating windows in the Dock widget.
- Drag and drop three Label widgets, two Line Edit widgets, and a Push Button widget on the Dock widget.
- Set the text property of the three Label widgets to Sign In, Email Address, and Password.
- Set the text property of the Push Button widget to Sign In.