In our interactive video application we need to process a large number of mouse move events as quickly as possible. Each event takes a significant amount of time to process (up to a second). I want to reduce the delays caused by having to wait for one event to be processed before continuing to the next, which causes undesirable latency in the interaction.
To do this I have added code to the event handler which calls a callback several times through the processing of the event to test whether other relevant events are pending. The idea is that if events are pending, the current event handler will be aborted immediately, allowing the new events to be processed with reduced delay. The problem is that I cannot find a way to access the list of pending events. I thought that QApplication would have a way to iterate through the pending events without processing them. The nearest thing is QApplication:rocessEvents(), but I don't want to process the events, just have a quick look at them. Is there a solution to this, or another way to achieve the same effect?
Bookmarks