Or inserting/removing the widget at position 0 in a QHBoxLayout that holds the remaining content of the main window.
Or showing and absolutely positioning a widget (child of main window) on top of the content in the main window. Calling move(0,0) should get you most of the way.
Really depends on the effect you are trying to achieve.
Bookmarks