Is this better than installing an event-filter on the widget itself? I guess the best (from a performance point of view) would be to subclass widgets and handle it there.
Is there a reason a QWidget doesn't has a focusChanged-signal? I also need to track the mouse-enter and mouse-exit which I'm currently doing also in the installed event-filter. Tom Eskil Abrahamsen Blomfeldt schrieb: > Tom Schindl wrote: >> Maybe I'm blind but I could find a signal I could connect to on a widget >> that allows me to track if the widget I'm interested in has the current >> input focus. >> > > The widget has focusInEvent() and focusOutEvent() handlers that you can > override if you wish to monitor it from inside the widget. If you'd > rather connect to a signal and monitor from the outside, you can use the > QApplication.instance().focusChanged signal: > > > http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/gui/QApplication.html#focusChanged > > > -- Eskil _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
