[PyQt] Catch a F key press in a QLineEdit
michael h
michaelkenth at gmail.com
Sun Nov 18 23:23:28 GMT 2018
> but didn't find a way of get it from a widget other than the main widget.
>
> Thank you in advance.
> Regards,
> Jorge
>
>
You can implement this on a QLineEdit as well:
http://doc.qt.io/qt-5/qlineedit.html#keyPressEvent
(alternatively if you aren't able to use your own QLineEdit subclass, you
can probably get it done with an event filter where you check if the source
is a QLineEdit, but I wouldn't start there)
mh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20181118/65a165d4/attachment.html>
More information about the PyQt
mailing list