[Qt-interest] Catching focus events from child widgets

J-P Nurmi jpnurmi at gmail.com
Fri May 14 10:52:11 CEST 2010


On Fri, May 14, 2010 at 11:30 AM, Robert Hairgrove
<evorgriahr at hispeed.ch> wrote:
> Is it necessary to subclass a child widget in a dialog and override the
> different focus events, for example, just so the parent knows when a
> line edit or spin box loses focus?  I couldn't find any way for the
> parent widget to get notification messages in such cases without doing
> it that way.
>
> Seems like a lot of work; maybe there is an easier way?

http://doc.qt.nokia.com/4.6/qobject.html#installEventFilter

--
J-P Nurmi




More information about the Qt-interest-old mailing list