[SOLVED]How to open specific tab on pushbutton clicked in tabwidget?
-
wrote on 16 Jul 2015, 05:04 last edited by Ratzz
I have a tabwidget . Which has Tab1 and Tab2. each tab has a Tableview.
How to make the tab1 to be opened on the pushbutton clicked ?
Is this the right way?ui->tab1->setFocus();
-
wrote on 16 Jul 2015, 06:01 last edited by
I think that will put the focus on the tab name.
Try setCurrentIndex(int index) -
wrote on 16 Jul 2015, 06:02 last edited byThis post is deleted!
1/4