SABROG wrote: > You can found QTabBar in QMainWindow widget like this: > > QTabBar *tabBar = QMainWindow::findChild<QTabBar *>(); > if (tabBar) { > tabBar->setCurrentIndex(1); > } kind of a hack but should work. Thanks for the hint.