#301 ✓fixed
Virgil Dupras

Accelerator keys in Qt menus

Reported by Virgil Dupras | January 24th, 2012 @ 10:34 PM | in v2.5 (closed)

Spawns from #299

Menus in Qt don't have accelerator keys. That's because I think adding accelerator characters to menu item labels complicates the localization process (All localizators have to be aware of the position of them item in a menu to wisely choose an accelerator character. This is not doable).

First, I need to make some research. There has to be someone who thought of an elegant solution somewhere.

Second, if I don't find anything, I was thinking of automatically assigning accel keys on menu creation. This should be relatively simple (I remember in Delphi's VCLs there was an option to automatically do it, but I didn't find that option in Qt). Just create a set of all available characters, then go through menu items finding the first letter of the label to still be available in the set and insert a "&" in front of it.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Referenced by

Pages