[Qt-interest] KeyPressEvent with MediaKeys

Jean-Baptiste Kempf jb at videolan.org
Sat May 2 22:57:47 CEST 2009


Hello,

I have seen a weird behaviour regarding QWidget::keyPressEvent on
Windows.

It seems that on Windows (Vista, Qt4.4 and 4.5) the event is triggered
twice with Multimedia Keys (Play, Volume) while it is fine with all
other keys.

Any very simple code that catches the keyPressEvent and shows the
event->key() should be able to show it. (like http://pastie.org/466178)

Am I alone seeing this case? How to fix it?

Best,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/



More information about the Qt-interest-old mailing list