Lets say you want to host 2 (or multiple) MainWindows in a QMainWindow. Add the MainWindows to a layout, and then put this layout on a QWidget, set this QWidget as the central widget of QMainWidget.

I only problem I see that MainWindow will loose it's MenuBar, as it not a top level window anymore.