PDA

View Full Version : Get QTabBar index from QMdiSubwindow



QMAsker
21st May 2019, 13:48
Hello,

I habe QMdiArea with TabView. By adding the QMdiSubWindow I added the lambda event that changes the title of the Subwindow. Based on the Subwindow pointer I want to find out which tab position it has. How can I do it?

With ui->mdiArea->findChild<QTabBar*>() I get the TabBar, but how can I figure out in which tab which subwindow?