Lost Qt Key Events when window focus changes

Mike Johnson Source

I have installed a QApplication event filter to handle QKeyEvents. When certain key presses are delivered to any of a set of (parentless) windows, the window loses focus, is disabled using QWidget::setEnabled(false), and another window is opened. The problem I see is that key events delivered after the first window loses focus but before the second window gains focus are lost, as in not delivered to the event filter. Does anyone know where the missing events go? I'm using Qt 4.1.4



comments powered by Disqus