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?