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

Action with multiple keyboard shortcuts in Designer

Scheduled Pinned Locked Moved Solved General and Desktop
designershortcutsqactionqt 5.7
2 Posts 2 Posters 2.2k Views 1 Watching
  • 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.
  • ErikaE Offline
    ErikaE Offline
    Erika
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      • Login

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