Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Action with multiple keyboard shortcuts in Designer
QtWS25 Last Chance

Action with multiple keyboard shortcuts in Designer

Scheduled Pinned Locked Moved Solved General and Desktop
designershortcutsqactionqt 5.7
2 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Erika
    wrote on 13 Oct 2016, 21:05 last edited by Erika
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Oct 2016, 21:40 last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      13 Oct 2016, 21:05

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved