Ok, I have found the QStackedLayout. This works fine!