Capturing a Modifier Sequence
-
Hello I would like to store a key sequence such as "Shift + 1" and i would like to store it as text so i can display it on the push button.
Example i have a dialog to read "shift + 1" and it will display the keyseq onto the push button
but the issue i have is that it will show the modified key instead of 1 : "Shift + !"
how can i show the original key pressed and avoid this issue with ctrl and alt or any combination of those 3 ?
-
@DannyL408
well what are you currently using to create string?`Just the QKeyEvent's modifiers() and text() methods?
Have you seen QKeySequence?Also see this