use a QStackedWidget as your top main window and put all the other three windows in the stackwidget. then you can move between them easily.

EDIT: too late.