Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.8, 6.2.2
-
None
-
-
9ff40b59da (qt/qtbase/dev) 9ff40b59da (qt/tqtc-qtbase/dev) 191faa0626 (qt/tqtc-qtbase/6.2), e6d85cf28 (dev), a884cf6e8 (tqtc/lts-6.5), 9557d1ca9 (6.6)
Description
Steps to reproduce:
In code:
- create QMainWindow with centralwidget and other stuff
- add two QDockWidgets (floatable|closeable|moveable)
- tabify the docks.
while runtime
- start application
- drag the two tabified docks to make them floating (but keep them tabified).
- drag the other tabified dock out of the floating window
- situation 3 windows.
observations/errors:
- *QMainWindowLayout::tabPosition called with out-of-bounds value '0'* in console after making the second dock floating, moving that dock or closing. (duplicate of
QTBUG-88157? ) - closing the QMainWindow in this state does not close the second QDockWidget. Application hangs. The widget needs to be closed manually (Difficult since the QDockWidget losses focus completely and gets burried by other open Applications)
- closing the buggy QDockWidget before QMainWindow hangs the application on closing the QMainWindow without any means of recovery. (Just waits forever in an emit awake() in qeventdispatcher_win.cpp @ line 554)
- the second QDockWidget is not able to dock the first QDockWidget (but the other way around works; also works if the docks are undocked individually.)
- sometimes runtime crashes at qdockerlayout.cpp @ line 1270 (access violation; probably has something to do if a layout is missing from the Widget inside the QDockWidget; didn't Encounter it after adding layouts to them)
Code: (attached)
Attachments
Issue Links
- is duplicated by
-
QTBUG-122394 Crash when using QDockWidget
-
- Closed
-
-
QTBUG-101657 cannot dock dockwidget that was previously docked
-
- Closed
-
-
QTBUG-114819 Grouped dragging in main window is buggy
-
- Closed
-
- relates to
-
QTBUG-74242 Undocked QDockWigets are not inheriting tabPosition from mainWindow
-
- Closed
-
-
QTBUG-47211 Drag and Drop dock widgets to floating QDockWidget's
-
- Closed
-
-
QTBUG-114542 DockWidget Crashes when undocked and tabbified
-
- Closed
-
-
QTBUG-118578 Undocking tabbed widget from floating window creates empty redundant window
-
- Closed
-
- resulted in
-
QTBUG-103091 FAIL! : tst_QDockWidget::floatingTabs in QNX_710
-
- Closed
-