I have a Qt 5 application that was developed on Debian Linux and now I'm porting it and enhancing it for OS X. When I brought it over, all of the menu shortcuts were present in the forms editor. The visual shortcut had been changed to reflect use of the command key rather than the control key. So, the ui file for the Login action looks like this:
<action name="LoginAction">
<property name="text">
<string>Log in...</string>
</property>
<property name="shortcut">
<string>Ctrl+L</string>
</property>
</action>
However, the only keyboard shortcuts that work now are the default ones that OS X uses, e.g. command-Q.
I have seen discussion on the Qt forums indicating that it is related to Qt 5 handing off shortcuts to Cocoa. This post Keyboard shortcuts - function keys - created in Qt app don't work on OSX suggested a workaround which I incorporated,
#if defined (Q_OS_MACX)
ui->LoginAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_L));
ui->LoginAction->setShortcutContext(Qt::ApplicationShortcut);
#endif
but the shortcuts still don't work. Command-L does not trigger LoginAction.
Any help is appreciated.