No, there's also QTabWidget and QMdiArea, which provide somewhat similar functionality.
Yes, you have to create all pages before you can add them to the QStackedWidget.
No, it will just show different page and hide the current one, but you can implement such mechanism easily on your own. You would need some kind of a factory and a manager which will decide what pages to produce and add to the stack and which ones should be deleted.
Yes, just like with every widget. The more pages you add to the stack, the more memory you will use.
The docs don't prohibit adding stacked widgets to stacked widget, so most likely you can have as many levels deep as your system can sustain.
For a very big system using sole QStackedWidget isn't a good solution, because you will use a lot of memory and your application will start slowly, because you will have to create whole GUI when it starts.
Although you can add pages on the fly, using some additional code just as I wrote earlier. Also take a look at QTabWidget, QTabBar, QMdiArea and QDockWidget.
Bookmarks