In the keyPressEvent function, how do I see if the user pressed Alt+e (or Alt+E) ?
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
a life without programming is like an empty bottle
Ah, solved it now. There are two QKeyEvents generated and with a bool flag it is solved.
Last edited by Morea; 9th September 2006 at 11:24. Reason: solved.
You can also use QShortcut.
AFAIK Alt isn't recognized as a key but as a modifier... see QKeyEvent::modifiers()Originally Posted by zlatko
Current Qt projects : QCodeEdit, RotiDeCode
Bookmarks