tesmai4
6th September 2013, 13:05
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.
ui->myWidgetDays->addTab(new QWidget(),"Date");
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,
I am adding tabs to myTabWidget dynamically in my program.
ui->myWidgetDays->addTab(new QWidget(),"Date");
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,