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
-
Virgil Dupras January 31st, 2012 @ 08:36 PM
- Assigned user set to Virgil Dupras
-
Virgil Dupras January 31st, 2012 @ 09:20 PM
- State changed from accepted to fixed
(from [33a56e206221]) [#301 state:fixed] Added automatic accel key assignment under Qt.
Not perfect, but better than nothing.
https://bitbucket.org/hsoft/moneyguru/changeset/33a56e206221/
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 299 Improve usability for users with disabilities #301 Accelerator keys in Qt menus.