It does not make much sense for QMainWindow to be a child of another QMainWindow. The layout itself that you desire can be obtained by using a grid layout.