[SOLVED] How to use number pad Keys in Qt?


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.


Use keyPressEvent->modifiers().testFlag(Qt::KeypadModifier).

Answered By – V.K.

Answer Checked By – Candace Johnson (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *