In the keyPressEvent function, how do I see if the user pressed Alt+e (or Alt+E) ?
Printable View
In the keyPressEvent function, how do I see if the user pressed Alt+e (or Alt+E) ?
First catching - user press ALT, second catching - user press E :rolleyes:
Ah, solved it now. There are two QKeyEvents generated and with a bool flag it is solved.
You can also use QShortcut.
AFAIK Alt isn't recognized as a key but as a modifier... see QKeyEvent::modifiers()Quote:
Originally Posted by zlatko