I need to do this for configuring my application. I have QLineEdit field with reimplemented keyPressEvent method.
QKeyEvent *ke = ...
QString txt;
if(ke->
Prefer a standard seqence.
From the Keyboard Layout Issues:
As a result, both human-readable strings and hard-coded key codes can both be problematic to use when specifying a key sequence that can be used on a variety of different keyboard layouts. Only the use of standard shortcuts guarantees that the user will be able to use the shortcuts that the developer intended.