Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
5.3.0
-
None
-
Win 7 x64, Qt 5.3
Description
Hi all,
let’s say I have a QMainWindow with 3 QDockWidgets allowed to dock on the same dock area, including in tabbed fashion. I can drag one QDockWidget on top of the other and have the two (or three) appear in the same space with a QTabBar automatically created at the bottom. All fine.
I can fetch the QTabBar (using findChildren<QTabBar *>() from the QMainWindow) and the QTabBar can tell me how many tabs there are (count) and which tab index is currently selected (currentIndex). But how do I know which QDockWidget (or QWidget) corresponds to, let’ s say, tab index 0 ?
Seems a very basic need but I can’t find anything … I must be missing something.
I've discussed on Qt forum, and somebody (more Qt-knowledgeable than me) suggested to create a feature request. The discussion is here: http://qt-project.org/forums/viewthread/43311/#179216
Max.