Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Accelerator keys in Qt menus

#301

Spawns from #299 Improve usability for users with disabilities

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.

Reported by Virgil Dupras · January 24th, 2012 @ 10:34 PM

State: fixed
Milestone: v2.5
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    January 31st, 2012 @ 08:36 PM

  2. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

    (from [33a56e206221]) [#301 Accelerator keys in Qt menus state:fixed] Added automatic accel key assignment under Qt.

    Not perfect, but better than nothing.
    https://bitbucket.org/hsoft/moneyguru/changeset/33a56e206221/

    January 31st, 2012 @ 09:20 PM

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.