I have QtKeyEvent* event from keyPressEvent func.
I want to get keyboard key name from this event. How example: I press "ALT + SHIFT + 1" and I want to get two modifiers from event->modifiers and "1" from event->key() (or event->nativeVirtualKey()).
I don't have problem with ALT and SHIFT, but I can't to get key name (string) "1" from event.
I tried to use QKeySequence(key).toString() and it's work for "1", "2"... But when I tried to press "F1"..., it look "F1" -> "p", "F2" -> "q"...
How to get QString keyname = "1" if I press "SHIFT + 1" and keyname = "F1" if I press "F1"?