In Qt normalmente questa cosa di solito viene gestita creando tutti i widget all'inizio dentro un QStackedWidget.
Il combobox si limiterà a cambiare il currentIndex del QStackedWidget.The QStackedWidget class provides a stack of widgets where only one widget is visible at a time.
[...]
QStackedWidget provides no intrinsic means for the user to switch page. This is typically done through a QComboBox or a QListWidget that stores the titles of the QStackedWidget's pages. For example:
codice:QComboBox *pageComboBox = new QComboBox; pageComboBox->addItem(tr("Page 1")); pageComboBox->addItem(tr("Page 2")); pageComboBox->addItem(tr("Page 3")); connect(pageComboBox, SIGNAL(activated(int)), stackedWidget, SLOT(setCurrentIndex(int)));