[Qt-interest] Dead key detection

Thiago Macieira thiago.macieira at trolltech.com
Wed Jul 15 14:53:22 CEST 2009


Em Quarta-feira 15 Julho 2009, às 09:41:19, Claus Tøndering escreveu:
> When you press and release the dead key: WM_KEYDOWN, WM_DEADCHAR, WM_KEYUP
>

> How can I detect that the user has pressed a dead key (before they press
> the letter key)?

You can't with standard Qt events, because it consumes the DEADCHAR event and 
hides that from you.

If you really need to detect the deadkey, you probably can do that via the 
winEventFilter in the QApplication class.

Can you explain why you need to detect the dead keys pressing?
-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Product Manager - Nokia, Qt Software
     Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090715/87badc3d/attachment.bin 


More information about the Qt-interest-old mailing list