We have already discussed about the differences between SDI and MDI applications in Chapter 3, Main Windows and Layout Management. We have seen many implementations of SDI applications. In this section, we will explore a technique of creating MDI applications.
A Multiple Document Interface application will be a main windowed application with their central widgets can be one of
PySide.QtGui.QWorkSpace widget. They are by itself a widget component, which manages the central area of main window to arrange the MDI windows in a layout. Sub-windows can be created and added to the MDI area or a workspace. An example of the MDI application is as follows:
class MyMDIApp(QMainWindow): def __init__(self): QMainWindow.__init__(self) ...