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:

Qt Code:
  1. while(ui.tabWidget->count())
  2. {
  3. delete ui.tabWidget->widget(ui.tabWidget->currentIndex());
  4. }
To copy to clipboard, switch view to plain text mode 

There are another better implementation?

Kind regards!