I have one tabwidget in which i am adding tab like this
tabWidget = new QTabWidget;
tabWidget->addTab(new First_Tab(), tr("Home"));
tabWidget->addTab(new Second_Tab(), tr("Guest"));
In the First_Tab, i am doing some search and after searching i want to show the result in another tab. Can anyone please guide me that how i can add another tab from the first_tab class? means when some conditions are filled and if i press the button show, a new tab opens and it shows all the search results. I already made the search tab just wanted to integrate it into this.
First_Tab::shoe_tab()
{
tabWidget->addTab(new, Search_tab(),tr("Results"));
}
↧