[Qt-interest] Bring tabified dock to front

SABROG sabrog at inbox.ru
Tue Aug 25 08:20:56 CEST 2009


Lars Amsel wrote:
> I have log outputs which are collected in tabified docks. When a new
> log is created I want to bring the corresponding dock to front. No
> matter where I insert this dock the active tab doesn't change.
> 
> Is there any way to activate one specific dock in a tabified dock
> list?
> 
> regards
> 
> Lars
You can found QTabBar in QMainWindow widget like this:

QTabBar *tabBar = QMainWindow::findChild<QTabBar *>();
if (tabBar) {
	tabBar->setCurrentIndex(1);
}



More information about the Qt-interest-old mailing list