I am using Qt (Embedded Linux) and I want to hide the shortcuts displayed right next to the menu items. I still want to use the shortcuts though.
ie;
Quit Ctrl+Q
I want to get rid of the "Ctrl+Q" part of it.
Quit
I am using Qt (Embedded Linux) and I want to hide the shortcuts displayed right next to the menu items. I still want to use the shortcuts though.
ie;
Quit Ctrl+Q
I want to get rid of the "Ctrl+Q" part of it.
Quit
据我所知,这是不可能的。
但是,您可以做的是不为菜单项设置任何快捷方式,而是使用QShortcut单独创建快捷方式。然后它们不会出现在任何菜单项旁边,因为它们不会与任何菜单项相关联。