very different from the sequence of hotkeys in
actually is a string in which the separator hotkeys are
sign, as well as the sequence
, if several sequences. Then, as in
there are modifiers
Alt, Ctrl, Shift,
which are represented by an unsigned integer type, and hot key, which is represented by the code keypad.
Let us research the option, when there is one sequence in
and it is necessary to register as a global hotkey in WinAPI. To this end, we agree that
as as a modifier will have only the
Ctrl, Alt, Shift
, and as hot keys one of the letters of the English alphabet.
Next to parse
write two functions:
unsigned int winKeyMod(QKeySequence)
- which will return an integer combination of modifiers;
-which will return the code of the hot key.
option in the bit values have
respectively, so the logical OR any number of data addition will give the required number of combinations. Hence it is necessary in the method
, identify modifiers of the sequence and if any one of the modifier to be added that the method returns.