QMainWindow — Qt for Python
doc.qt.io › qtforpython-5 › PySide2You set the central widget with setCentralWidget () . Main windows have either a single (SDI) or multiple (MDI) document interface. You create MDI applications in Qt by using a QMdiArea as the central widget. We will now examine each of the other widgets that can be added to a main window. We give examples on how to create and add them.
QMainWindow — Qt for Python
doc.qt.io › qtforpython › PySide6You set the central widget with setCentralWidget (). Main windows have either a single (SDI) or multiple (MDI) document interface. You create MDI applications in Qt by using a QMdiArea as the central widget. We will now examine each of the other widgets that can be added to a main window. We give examples on how to create and add them.