PDA

View Full Version : Discard user input events in QEventLoop.



Ben.Hines
17th April 2006, 20:08
Hello,

The documentation for QEventLoop::ProcessEventFlags::ExcludeUserInputEve nts says that user input events will not be processed and will not be discarded. I would like to call processEvents and not only exclude user input events, but also discard them. Is there a way to do this?

Thanks!
-Ben

jacek
17th April 2006, 20:14
Use event filter (QObject::eventFilter()) or write your own event loop (QEventLoop), that will discard those events.

Ben.Hines
17th April 2006, 21:49
I should have thought of this. Thanks.