Tested on Qt 4.8.6 on Windows8
1) Start the application
2) Press Windows+Up to maximize the window
3) Release the keyboard (no key is pressed)
4) The next call to QApplication::keyboardModifiers() will return that Alt key is pressed. Which is obviously not true. queryKeyboardModifiers() works fine.
I didn't test it on Qt5. Probably, still actual.