Reputation: 1001
The Qt::Key enum has no number pad specific numeric definitions. So how would one go about distinguishing between a number pressed on the number pad vs a number on the number row? I know the events at the OS level are different. Enter and Return on the other hand are separate keys.
Upvotes: 0
Views: 1232
Reputation: 7974
Use keyPressEvent->modifiers().testFlag(Qt::KeypadModifier)
.
Upvotes: 1