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. Show all registered shortcuts within an application
Qt 6.11 is out! See what's new in the release blog

Show all registered shortcuts within an application

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k 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.
  • C Offline
    C Offline
    cristeab
    wrote on last edited by
    #1

    Hi

    I have a mixed QML and C++ application and my action linked with "Esc" key generates the warning: "ambiguous shortcut". Is there a way to display a list with all available shortcuts within an application ? It is possible to handle "Esc" from within the application ?

    thanks
    Bogdan

    1 Reply Last reply
    0
    • T Offline
      T Offline
      texpert
      wrote on last edited by
      #2

      Hello!

      Regarding the handling of Esc key - http://qt-project.org/doc/qt-5/qwidget.html#keyPressEvent - "The default implementation closes popup widgets if the user presses Esc." So you could override the default event handler with your own or better use another key or key sequence.

      AFAIK there is no list of all shortcuts. I think you could query one by one the list of standard key sequences http://qt-project.org/doc/qt-5/qkeysequence.html#StandardKey-enum with QKeySequence::keyBindings - http://qt-project.org/doc/qt-5/qkeysequence.html#keyBindings

      Sincerely yours, amigos!

      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