I am in a situation when I try to read in the JSON configuration file, which determines which key commands correspond to the given actions. For example:
... { "Action": "Quit", "Combo" : "CTRL+Q" }, ...
Building a QKeySequence from a combined tag is trivial, but I need to track the QKeyEvent to trigger the actions. Please note that I have to track QKeyEvent , because they are used for other purposes in the application. that is, it would be unacceptable to control only key commands for QKeySequence (if possible).
With the exception of writing a custom analyzer to create a QKeyEvent object for each "Combo" tag, is there any comparison between QKeyEvent and QKeySequence ? For example:
QKeyEvent KeyCommandsHandler::toKeyEvent(QKeySequence sequence) {
c ++ qt key-events qkeysequence
Chris robinson
source share