OK, according to Alexander Wolf, the latest revision enables the shortcuts on Mac. Apparently, they are disabled by default because they don't fit in Apple's design philosophy or something.
Unfortunately, this means that the underlines indicating the shortcuts are simply not displayed on a Mac and, by default, on Windows 7 (though this can be changed in the user settings). And this kills the whole idea. :(
OK, according to Alexander Wolf, the latest revision enables the shortcuts on Mac. Apparently, they are disabled by default because they don't fit in Apple's design philosophy or something.
More info: doc.qt. nokia.com/ stable/ qshortcut. html#details doc.qt. nokia.com/ stable/ qtglobal. html#qt_ set_sequence_ auto_mnemonic
http://
http://
Unfortunately, this means that the underlines indicating the shortcuts are simply not displayed on a Mac and, by default, on Windows 7 (though this can be changed in the user settings). And this kills the whole idea. :(
Something that needs to be experimented with: using QActions like in your orignal implementation, but with setting their shortcut context to Qt::WidgetShortcut or some of the other values: doc.qt. nokia.com/ stable/ qaction. html#shortcutCo ntext-prop
http://
QMenu::addAction() returns a pointer to the action, so calling setShortcut() for each menu item will be easy.
I don't have time to experiment with this right now, so I'm inclined to merge the code in its current implementation and make the adjustment later.