Docking / floating QDockWidget management is all handled by QMainWindow. You should not have to implement this yourself. You need to specify the correct set of QDockWidget::DockWidgetFeatures flags (like DockWidgetMovable | DockWidgetFloatable) and set the allowedAreas() properly. It will just work without any "manual behaviour" coding.




Reply With Quote

Bookmarks