Important: Please read the Qt Code of Conduct -

Action with multiple keyboard shortcuts in Designer

  • Hello, I'm currently using Designer to construct the main .ui file and wanting to have an action assigned multiple keyboard shortcut combinations (eg. CTRL+C, CTRL+INS). Trying to assign two keyboard shortcuts directly in designer didn't seem to work.

    Reading up, it sounds like its only possible by setting a list of KeyboardSequences via setShortcuts() during post-processing in the codebase, but I thought I'd ask here to confirm.

  • Lifetime Qt Champion


    AFAIK, yes, you need to set them in your widget constructor.