Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6.0 Beta
-
191858abe8cd2681f8f4e9de47819829bf1eaebb (qtbase/5.6, 20.1.2016, 5.6)
Description
A main window with QMainWindow::GroupedDragging has two dock widgets: Dock A and Dock B. If you do the following sequence, Dock B cannot be moved anymore:
1. make Dock A floating
2. add Dock B as a tab of Dock A (by dragging)
3. remove Dock B from Dock A
4. Dock B is no longer movable
5. close Dock B, reopen it
6. Dock B is now movable but cannot be added to Dock A as a tab
This can be reproduced with Qt Dock Widgets Example (examples/widgets/mainwindows/mainwindow). Just add dock option QMainWindow::GroupedDragging and follow the steps above.
Attachments
Issue Links
- relates to
-
QTBUG-50491 QMainWindow::restoreDockWidget() doesn't restore correctly when GroupedDragging is set
- Reported
For Gerrit Dashboard: QTBUG-50490 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
146459,2 | QDockWidgetPrivate::setWindowState(): Fix parent when unplugging from group. | 5.6 | qt/qtbase | Status: ABANDONED | -2 | 0 |
146543,2 | QMainWindowLayout::unplug(): Prevent unplugging when the widget is not a window. | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |