Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, March 2008
How to check actual keyboard modifiers state?


Message 1 in thread

How to check actual keyboard modifiers state?

Is there simple way to do this? 
QApplication::keyboardModifiers() not always returns actual state (as in example when pressed left Ctrl, right Ctrl, than released one of Ctrls).
keyPressEvent/keyReleaseEvent catchs only if events emerged when widget is focused.
May be save keyboard modifiers in mouseMoveEvent? But this is freaky.

--
 [ signature omitted ]