Take a look at the QStackedWidget. I just started using them myself.
They have βpagesβ that are shown / hidden when called. For instance:
ui.stackedWidget->setCurrentIndex( 0 );
For example, when index 0 is displayed, pages 1,2,3 ... are hidden under it.
I connected to a bunch of switches that, when clicked, displayed the corresponding page / widgets and hid others below it. The connection is simple:
connect( button_group_ptr, SIGNAL( buttonClicked( int ) ), ui.stackedWidget, SLOT( setCurrentIndex( int ) ) ); connect( ui.stackedWidget, SIGNAL( currentChanged( int ) ), this, SLOT( stackedWidgetChanged( int ) ) );
source share