widget1=newQWidget;
first1=new Ui::First;
first1->setupUi(widget1);
widget2=new QWidget;
second1=new Ui::Second;
second1->setupUi(widget2);
third1=new Ui::Third;
widget3=new QWidget;
third1->setupUi(widget3);
tab=new QTabWidget(this);
tab->addTab(widget1,"First1");
tab->addTab(widget2,"First2");
tab->addTab(widget3,"First3");
tab->resize(300,300);