Reputation: 2700
I have the following function (in Qt 4)
void keyReleaseEvent( QKeyEvent *e )
{
// recognize that 'r' is pressed
if ( e->key() == Qt::Key_R )
{
doSomethingCool();
}
}
I want to also recognize when the center key on the numeric keypad is pressed (the 5 key, but with numlock off). I don't know what this key is called.
Upvotes: 3
Views: 800
Reputation: 2700
The correct key is Qt::Key_Clear
. I tried this earlier (as seen in previous edits), but I must have had numlock on, or had something else wrong.
Upvotes: 3