I think it's possible ,but every time you re-parent your layout to a new widget a previous one will lose it and...become blank.Maybe it's fine if you're gonna have one visible widget at any moment (like with QStackedLayout).