Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-39489

tabified QDockWidgets, how to know their indexes in the QTabBar ?

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.3.0
    • Widgets: Main Window
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            hornetmax Massimiliano Maini
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes