qt_developer
11th April 2013, 15:21
Hi all,
I haven't found a method to remove and delete the tabs for a QTabWidget into QTabWidget class.
I used this code to remove and delete the tabs for a QTabWidget:
while(ui.tabWidget->count())
{
delete ui.tabWidget->widget(ui.tabWidget->currentIndex());
}
There are another better implementation?
Kind regards!
I haven't found a method to remove and delete the tabs for a QTabWidget into QTabWidget class.
I used this code to remove and delete the tabs for a QTabWidget:
while(ui.tabWidget->count())
{
delete ui.tabWidget->widget(ui.tabWidget->currentIndex());
}
There are another better implementation?
Kind regards!