Let's create an application that consists of two documents, and each document will be displayed via its individual subwindow. We will learn how to arrange and view these subwindows as desired:
- Launch Qt Designer and create a new Main Window application.
- Drag and drop a MdiArea widget onto the form.
- Right-click on the widget and select Add Subwindow from the context menu to add a subwindow to the MdiArea widget.
When the subwindow is added to the MdiArea widget, the widget appears as the dark background, as shown in the following screenshot:
- Let's, right-click again on the MdiArea widget and add one more subwindow to it. ...