PDA

View Full Version : filter processEvents



sreedhar
23rd March 2006, 11:04
Hi,
I am presently using QCoreApplication::processEvents(QEventLoop::Exclud eUserInputEvents);

to exclude the user from pressing any key or mouse press when my application is running.

I want sth. to filter the events so that i can catch Qt::Key_Escape and use that to stop the running application, I also have a cancel button in the Toolbar to stop the application.
So I need to filter out these the key_Escape press and mouse click on cancel button

Please reply me if this is possible,

Thanking you in advance,

regards,
Sree

wysota
23rd March 2006, 11:16
http://doc.trolltech.com/4.1/eventsandfilters.html