View Full Version : handle a Alt+E key press
Morea
9th September 2006, 10:31
In the keyPressEvent function, how do I see if the user pressed Alt+e (or Alt+E) ?
zlatko
9th September 2006, 10:43
First catching - user press ALT, second catching - user press E :rolleyes:
Morea
9th September 2006, 11:22
Ah, solved it now. There are two QKeyEvents generated and with a bool flag it is solved.
jacek
9th September 2006, 13:37
You can also use QShortcut.
fullmetalcoder
9th September 2006, 15:06
First catching - user press ALT, second catching - user press E :rolleyes:
AFAIK Alt isn't recognized as a key but as a modifier... see QKeyEvent::modifiers()
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.