handle KeyEvent in C++
Solved
QML and Qt Quick
-
With a c++ class that has a slot
void handleKeyEvent(QKeyEvent event); // or void handleKeyEvent(QKeySequence event);
I can only use (inside qml) QKeySequence version of the slot given event from Keys.pressed. Sadly, this results in an empty sequence (QKeySequence::toString() gives an empty string).
How one can handle those KeyEvents in a c++ class?