I have a QTabwidget and 4 QWidget sub-tabs and I'd like to hide 3 sub tabs when I am not using them. With a 'Enable' button, I want the hidden sub-tabs to appear again. In order to hide them, I tried removeTab function as below
ui->tabWidget_2->removeTab(3);
ui->tabWidget_2->removeTab(2);
ui->tabWidget_2->removeTab(1);
But then, I don't know how to reinsert the hidden tabs cuz I do not have the pointer to the hidden tabs. Or is there any other good method to hide them other than removeTab? Please let me know. It'd be really appreciated. Thanks.