How to do it...

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:

  1. Launch Qt Designer and create a new Main Window application.
  2. Drag and drop a MdiArea widget onto the form.
  3. 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:

  1. Let's, right-click again on the MdiArea widget and add one more subwindow to it. ...

Get Python GUI Programming - A Complete Reference Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.