Hi,

As the subject title implies, I have a QTabWidget inside a QStackedWidget.

When I try to add a new tab by calling the following piece of code;

Qt Code:
  1. _ui.tabWidget->addTab(temp, QString::number(p_Cid));
To copy to clipboard, switch view to plain text mode 

It adds the tab but overrides the most previously added tab. ( Also meaning that shows only the lastly added tab.)

Any ideas?