Opening menus using shortcuts
-
Know how to set menu item shortcuts using QAction::setShortcut(). However, I want to open the menus on the menubar using shortcuts. (Alt+F to open the File menu, etc.) Any specific way to do this?
-
Hi,
IIRC, you can do that by setting an accelerator on the corresponding menu through e.g.
QMenu(tr("&File"))
-
@SGaist is that when you are creating the menu?
-
Yes, but you can also use setTitle