Get key position of QKeyEvent (multiplatform)
In order to make position-based keyboard shortcuts, that work for all keyboard layouts, I need to identify a physical keyboard key, without the keyboard layout on top of it. Ideally, I would like to retrieve the scancode of the QKeyEvent, because that is not keyboard layout-dependent. For example, if I would want to map Shift+Q to volume-down and Shift+W to volume-up (two keys which are next to each other on a US keyboard layout) I could just map these to Shift+0x10 and Shift+0x11 , according to this scancode set . This way, it will also work for French keyboard layouts, where the Q and the A