QDockWidget: disable double click on title bar
Howdy,
I have some QDockWidget's and I want to disable the double click on the title bar. At the moment, I'm porting a windows MFC app to Qt, and it's not using a QMainWindow yet, so double clicking on the titlebar hides the window, rather than docking/undocking it.
Is there an easy way to do this, or should I just not use QDockWidget until I have a QMainWindow?
Many thanks!
Re: QDockWidget: disable double click on title bar
You can temporarily filter out the mouse double click event with an event filter.
Re: QDockWidget: disable double click on title bar
Thanks for the quick response, that worked a treat - once I realised that the correct event type was QEvent::NonClientAreaMouseButtonDblClick :)