I tried to set an action in a QMenu with the ampersand shortcut (&) but the shortcut is not rendered. I should have a rendering like the "Help" action with the F11 shortcut.
The code:
QMenu* filesMenu = ui->menubar->addMenu("&Test");
QAction* ampersandAction = filesMenu->addAction("Ampersand!");
ampersandAction->setShortcut(Qt::Key_Ampersand);