[Qt-interest] keyPressEvent with german keyboard

freekee1 freekee1 at gmx.de
Thu Mar 17 12:41:44 CET 2011


hi.

i think "Ö" would be Qt::Key_Odiaeresis (0x0d6)actually, i just tried it 
with Qt 4.7 and it works, and i think it also used to work in 4.6 for 
me, i used it some time ago ...
Qt::Key_Adiaeresis and Qt::Key_Udiaeresis are there for "Ä" and "Ü" 
accordingly.
maybe you can try those.

julian


Am 17.03.2011 11:08, schrieb Martin Grossberger:
> 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
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110317/7bf4d59f/attachment.html 


More information about the Qt-interest-old mailing list