[PyQt] Catching key events
David Boddie
david at boddie.org.uk
Sun Jan 18 23:22:25 GMT 2009
On Sun Jan 18 23:14:37 GMT 2009, Frédéric wrote:
> On samedi 17 janvier 2009, Frédéric wrote:
> > I forgot to ask: once I have checked all the key events, in
> > keyPressedEvent, how do I let propagate the event I don't want to handle?
>
> No idea?
Call the event's ignore() method before returning.
"You should call ignore() if the key press or release event is not handled
by your widget."
[http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qkeyevent.html]
David
More information about the PyQt
mailing list