Holding key down causes key events to be sent with isAutoRepeat=false (normal?). If focus leaves to another application while key is pressed down and is lifted there, coming back to Qt application and pressing the key again sends key event with isAutoRepeat=true once for release and once for press event, after which it stays false again. How ever, if key was held down the whole time, isAutoRepeat is always false.
1. open notepad
2. run attached application
3. press key down and click notepad window
4. release the key
5. focus Qt application again and press same key down again
There should be output that should be similar to this: