The label assignment documentation for QPushButton is as follows:
A shortcut key can be specified, preceding the preferred character with an ampersand in the text. For instance:
QPushButton *button = new QPushButton("&Download", this);
In this example, the shortcut is Alt + D.
What should I do if I do not need the Alt+[AZ] shortcut? For example, in my case, I want my button to be triggered when the TAB button is pressed. How can I achieve this effect?
Kvass source share