PDA

View Full Version : QKeyEvent - lower case vs upper case keys?



ArkKup
9th January 2012, 12:43
Hi,

Is there a way to distinguish between an upper case letter being pressed vs. a lower case letter? other than KeyPressevent and the KeyReleaseEvent of the Shift Button.
Does anyone know a easier way?

Lesiok
9th January 2012, 13:33
QKeyEvent::modifiers (http://developer.qt.nokia.com/doc/qt-4.8/qkeyevent.html#modifiers)

ArkKup
9th January 2012, 14:19
thanks! btw. anyone knows if there is some platform independent method of determining if CAPS LOCK is on ?

Spitfire
9th January 2012, 15:58
Take a look here (http://www.qtforum.org/article/32572/how-to-determine-if-capslock-is-on-crossplatform.html).