I'm working on implementing floating / docking behavior for QDockWidget but when it's floating contextMenuEvent is no longer received so now the user can't right and select Dockable option. QDockWidget is subclassed and from there three different dock widgets inherit from that. The handling of contextMenuEvent is in the QDockWidget subclass.

Any ideas why this is happening? My goal is to implement something similar to Visual Studio were the user can right click on the title to Float or Dock the window. Side question: Is it possible to have contextMenu work on the title of a dockwidget?

Thank you

Using QT: 4.3.2