Archived:Qt Key Event test example
This code example demonstrates how to control key events from a Qt application on Maemo.
When a widget has the keyboard input focus, key events are sent to it when keys are pressed or released. Sometimes the developer wants to use events from keyboard to perform custom action, such as control in games. It can be done by reimplementing the virtual protected method QWidget::keyPressEvent in a class which inherits from QWidget.
File:QtforMaemoKeyEventTest.zip - Link to the the complete source code for the example