I have a Qt4 application with menu entries with short-cuts (nothing fancy, things like Ctrl+O to open files, Ctrl+S to save ...). When compiled with Qt5, the short-cuts do not work although the actions are attached to the menu bar.
They work again if I add them to a toolbar though.
Is there an easy way to make it work? I can also add all these actions to the list of actions attached to the main window, but this is a pain and prone to mistake.
I had this issue porting from Qt4 to Qt5 on Ubuntu 14.04. The problem is a bug in the current version of the appmenu-qt5 package. There seem to be two practical workarounds:
Add the action to the main Main Window (in addition to the Menu of the Main Window). addAction(<actionName>)
Uninstall appmenu-qt5 until it is fixed.
I was happy to live with the effects of 2, but all users of the application would have to uninstall appmenu-qt5 too.
https://bugs.launchpad.net/ubuntu/+source/appmenu-qt5/+bug/1313248
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With