Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.1
-
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
Issue Links
- relates to
-
QTBUG-99136 QDockWidget not correctly parented/setup if dragged from another floating and tabified QDockWidget
-
- Closed
-
For Gerrit Dashboard: QTBUG-74242 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
256546,4 | QDockWidgetPrivate: Use member initialization | 5.13 | qt/qtbase | Status: MERGED | +2 | 0 |
256547,4 | QDockWidget: Store tab position when undocking | 5.13 | qt/qtbase | Status: MERGED | -2 | 0 |
256567,2 | Silence QMainWindow test | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |