Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Duplicate
-
Affects Version/s: 5.15.4, 6.0.3
-
Fix Version/s: None
-
Component/s: Widgets: Widgets and Dialogs
-
Labels:
-
Environment:macOS 10.14, 10.15
-
Platform/s:
Description
Setting Qt::WA_NativeWindow on any main window sub-widget (QDockWidget contents, central widget) breaks QDockWidget undocking and docking behaviors.
Problem 1 :
- When the dockWidget is undocked, it immediately becomes unresponsive to drag mouse movement
- When the mouse button is released the window then starts dragging
Problem 2:
- A floating dockWidget cannot be docked by dragging to the docking area.
- It requires to click the docking area.
How to reproduce :
Use attached sample project qtbug93064.zip ( Setting attribute Qt::WA_NativeWindow to https://doc.qt.io/qt-5/qtwidgets-mainwindows-dockwidgets-example.html )
- Uncomment any of "setAttribute( Qt::WA_NativeWindow, true);" in mainwindow.cpp
- Try to undock and dock the windows
Attachments
Issue Links
- duplicates
-
QTBUG-90976 macOS: Calling winID on view port having Dockwidget breaks Dockwidget drag/dock etc
-
- Closed
-
- relates to
-
QTBUG-74606 floating QDockWidget with native child widget fails to show() after closing it
-
- Closed
-
-
QTBUG-88993 Dock separators with WA_NativeWindow are janky on Mac
-
- Closed
-