I have an app that is displaying full HD video at 60fps.
This is maxing out the CPU and since all the display has to be done in the gui thread it is missing any mouse or keyboard events.

I tried putting a QApplication:rocessEvents() in the paint event but this halves my frame rate. Other than hacks - like calling this every 60frames and living with the glitch, is there a way of quickly checking if any key/mouse event is pending?