[Qt-interest] How to create a KeyEvent when I click the mouse?

Kermit Mei kermit.mei at gmail.com
Mon Jul 6 12:15:38 CEST 2009


Hello, all!
I'm implementing a virtual Keyboard which will run on ARM. Now, I hope
when I click the button, the corresponding key board event will be emit,
as if it is a real key event. 

For example, When I click the "Home" button, the widget's
QWidget::KeyPressEvent() and QWidget::KeyReleaseEvent() will work as if
a real "Home" key was pressed.

How can I implement it ?

Thanks.

Kermit





More information about the Qt-interest-old mailing list