I have a QTabWidget called tabWidget. It has three tabs: \"Basic\", \"Advanced\", and \"Current Structure\". The tabs are displayed in the widget in that order
QTabWidget
You could disable the layout of the tab.
bool result = false; if (result == false) { tabWidget->widget(1)->layout()->setDisabled(true); }