[Interest] Finish QLineEdit editing when user clicks anywhere outside the QLineEdit

Murphy, Sean smurphy at walbro.com
Tue Aug 13 22:21:24 CEST 2019


> 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


More information about the Interest mailing list