I used the QLineEdit  focusOutEvent() event.

> On Aug 13, 2019, at 1:21 PM, Murphy, Sean <smur...@walbro.com> wrote:
> 
>> Hmm, about that extra step, to remember the filter stuff, since you already
>> have a custom line edit class, why not embed the MouseFilter class inside it?
>> I mean, the filter does not have to reside in MainWindow, it needs only the
>> qApp pointer, so you could wire it up in your custom line edit's ctor 
>> instead.
>> Thus making it an integrated part of your custom class :-)
> 
> Already planning on attempting that once I can get back around to this issue! 
> As often happens, something else is pulling my attention away at the 
> moment, but I'll give it a shot when I have time and report back.
> 
> Sean
> 
> 
> This message has been scanned for malware by Forcepoint. www.forcepoint.com
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest

-John

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to