[Interest] hide shortcuts in menu without disabling them

Nurmi J-P jpnurmi at digia.com
Wed Jul 3 21:38:37 CEST 2013


On Jul 3, 2013, at 7:48 PM, Vincent <vincentb1981 at gmail.com> wrote:

> Hello,
> 
> I'm adding a series of QAction's to a menu. Shortcuts are associated to each of these QAction's.
> 
> I would like to hide the shortcuts but at the same time leaving them active.
> 
> Do you know how to that?
> 
> If it is not possible by default, is there a possibility to override a Qt method?
> 
> Thanks,
> 
> Cosmo


Hi,

Not sure why you want to hide the shortcuts, but you can always create plain QShortcuts instead of assigning the shortcuts to QActions.

--
J-P Nurmi




More information about the Interest mailing list