[Qt-interest] keyPressEvent with german keyboard
Martin Grossberger
mgrossberger at andtek.com
Thu Mar 17 11:08:45 CET 2011
Hello all,
I've implemented a simple hotkey edit, subclassing QLineEdit to record a
hotkey in keyPressEvent, then displaying it. For most keys this works
just fine, however I have trouble with german umlaut keys.
For Ö I get the (undocumented) Key 0xF6 with the correct text "ö", for Ä
the (also undocumented) Key 0xE4 with the correct text "ä".
For Ü however, I get the Key 0x5B, which is Qt::Key_BracketLeft, with
the according text "]".
When I register any of these Keys (with any modifier) as QShortcut,
*none* of them work (i.e. they register fine, but pressing the specified
Hotkey does not trigger them).
Can anybody reproduce this issue? Is this a known bug, or did I do
something wrong?
I'm currently using Qt 4.6.2 on Windows 7. I didn't get to testing it on
another configuration.
Many Thanks,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110317/ad81ddec/attachment.html
More information about the Qt-interest-old
mailing list