O'Reilly logo

PySide GUI Application Development by Venkateshwaran Loganathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementation of MDI

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.QMdiArea or 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) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required