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

Undocked QDockWigets are not inheriting tabPosition from mainWindow

XMLWordPrintable

    • 0590da532e3349715b0f35eca930ce3ff5588115 (qt/qtbase/dev)

      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.

        1. DockInsideMainWindow.PNG
          22 kB
          Shveta Mittal
        2. GroupedAfterUndock.PNG
          37 kB
          Shveta Mittal
        3. qtbug74242.zip
          1 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes