QWidget has virtual functions focusInEvent and focusOutEvent
Overload those and you should be golden
> -----Original Message-----
> From: Mike Jackson [mailto:[email protected]]
> Sent: Thursday, August 21, 2008 10:37 AM
> To: [email protected]
> Subject: How to detect window gaining and losing focus
> I am trying to figure out what I need to over-ride or implement in my
> QMainWindow derived classes in order to detect when they get
> focus/activated. I looked through the QtAssistant and a few Qt Books
> that I have here but the solution is eluding me. I would have thought
> just a simple over ride of a method would do the trick but I just can
> not get the correct method.
> Thanks for any help
> Mike Jackson
> To unsubscribe - send a mail to [email protected] with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
To unsubscribe - send a mail to [email protected] with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/