Create a QStackedWidget as a main widget