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

The central widget

As we have seen earlier, the central area of the QMainWindow can be occupied by any kind of widget. This widget can be any of the following:

  • A standard Qt widget such as QTextEdit or QGraphicsView
  • A custom widget created using primary widgets
  • Plain QWidget with a layout manager, which acts as a parent for many other widgets
  • Multiple widgets with a QSplitter which arranges the widgets horizontally or vertically
  • MDI area which acts as a parent for other MDI windows

In our example, we use QTextEdit as the central widget. The PySide.QtGui.QTextEdit class provides a widget that is used to edit and display both plain and rich text formats. QTextEdit is an advanced WYSIWYG viewer/editor supporting rich text formatting using HTML style tags. ...

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