[Solved] Show/Hide sub-tab on QTabWidget
General and Desktop
5
Posts
2
Posters
2.8k
Views
1
Watching
Assuming I have a QTabWidget that contains 5 sub-tabs. Now I want to show/hide a sub-tab in one of 5 sub-tabs by following code
@ui->twListTabs->widget(0)->hide(); // Hide first sub-tab@
But this didn't work for me. Do you have any solutions?
Thanks!
AFAIK you can only use
@
ui->twListTabs->removeTab(0);
@