Check if keyboard key is down
-
Those are two different things.
The mouse event delivers "modifiers":http://doc.qt.nokia.com/latest/qinputevent.html#modifiers , which are "Ctrl, shift etc.":http://doc.qt.nokia.com/latest/qt.html#KeyboardModifier-enum
For other keys, you have to use OS specific things. -
[quote author="mirswith" date="1316037198"]... or listen for key events and store them someplace.[/quote]
This will not work 100%. Think of someone put's the focus out of your app, presses shift and then click into your app. You would not get the shift press as key event...