I sub-class QTabWidget(myTabWdiget) and add this into mainwindow by promoting QTabWidget to myTabWidget. This works fine. There are no extra tabs added.

I am adding tabs to myTabWidget dynamically in my program.

Qt Code:
  1. ui->myWidgetDays->addTab(new QWidget(),"Date");
To copy to clipboard, switch view to plain text mode 
One [extra] empty tab is added into myTabWidget after adding all my [desired] dynamic tabs. This empty tab has index 0;

I am only adding tabs in my program at one place. I have no idea why it is happening.

Regards,