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:
Qtwidget such as
QWidgetwith a layout manager, which acts as a parent for many other widgets
QSplitterwhich arranges the widgets horizontally or vertically
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. ...