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

Undocked QDockWigets are not inheriting tabPosition from mainWindow

    XMLWordPrintable

Details

    • 0590da532e3349715b0f35eca930ce3ff5588115 (qt/qtbase/dev)

    Description

      If dockOptions are set to GroupedDragging in mainWindow, and dockWindows are undocked and grouped outside mainWindow, tab position is hardcoded to QTabBar::RoundedSouth in
      qmainwindowlayout.cpp line no. 2576

                      QDockAreaLayoutInfo *info = floatingTabs->layoutInfo();     
                      *info = QDockAreaLayoutInfo(&layoutState.dockAreaLayout.sep, QInternal::LeftDock,
                                                  Qt::Horizontal, QTabBar::RoundedSouth,
                                                  static_cast<QMainWindow *>(parentWidget()));
      

      Ideally it should pick this information from parent window i.e mainWindow.
      I have attached a sample, when you dockwindows inside Main window, tab position is set to north, but when they are grouped after undocking, it is always south.

      Attachments

        1. qtbug74242.zip
          1 kB
        2. GroupedAfterUndock.PNG
          GroupedAfterUndock.PNG
          37 kB
        3. DockInsideMainWindow.PNG
          DockInsideMainWindow.PNG
          22 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-74242
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              shmittal Shveta Mittal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes