PDA

View Full Version : processevents, filtering events



sreedhar
24th June 2006, 09:24
Hi,
I am using processEvents(QEventLoop::ExcludeUserInputEvents), to exclude all user input events.

In my app., i want to stop long running processes with ESC key, So is there any way to filter out the key press ESC.

Please provide a code snippet if possible,

Thanking you,

regards,
sree

wysota
24th June 2006, 22:49
You can use eventFilter and filter key events or reimplement keyPressEvent for your widget directly. There are examples on both subjects in the docs.