hi,

I have a QMainWindow hosting several subclassed QDockWidgets. I would now need to detect when one of the QDockWIdgets gets or looses focus.
There doesnt appear to be a signal for that, so i figured i have to catch the event somehow :

Qt Code:
  1. class mydockwid : public QDockWidget
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6.  
  7. ....
  8.  
  9. //qt event handlers
  10. virtual void focusInEvent( QFocusEvent* );
  11. };
To copy to clipboard, switch view to plain text mode 

But the focusInEvent() never gets called. I am also worried that QDockWidget has or will have use for focusInEvent() itself, and i break its functionality.

How to do it properly?