I tried to set a shortcut by the following code, but it doesn\'t work. If I change it to ALT + Comma or ALT + Return, it will be fine. but the request is Comma + Return. Does an
You can create it by using the multiple arguments constructor for QKeySequence.
like this:
auto ac = new QAction(this); ac->setShortcut(Qt::Key_Comma + Qt::Key_Return);