Keyboard key values and State
General and Desktop
2
Posts
2
Posters
1.6k
Views
1
Watching
-
for that, you'll have to either implement an "eventFilter":http://qt-project.org/doc/qt-4.8/qobject.html#eventFilter and "install it":http://qt-project.org/doc/qt-4.8/qobject.html#installEventFilter, or reimplement the "keyPressEvent":http://qt-project.org/doc/qt-4.8/qwidget.html#keyPressEvent on a QWidget.
The event you'll get in either of those two methods will hold the currently (or at the time of the event) pressed key.