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

Undocked QDockWigets are not inheriting tabPosition from mainWindow

    XMLWordPrintable

    Details

    • Commits:
      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. DockInsideMainWindow.PNG
          DockInsideMainWindow.PNG
          22 kB
        2. GroupedAfterUndock.PNG
          GroupedAfterUndock.PNG
          37 kB
        3. qtbug74242.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes