Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132729

Keyboard shortcuts not triggering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.1
    • None
    • Using Qt 6.8.1 on Ubuntu 24.04
    • Linux/X11

    Description

      The attached C++ program creates a derived QMainWindow with a single action with the shortcut set to the "d" key. The action is added to both the menu and the main window. Using a custom QMenuBar with an key event handler and another handler on the main window, it shows that the main window is receiving the "d" key presses, but the action is not triggered. When the menu is opened, it also receives the "d" key presses, but the action is still not triggered. Using the keyboard to trigger the menu button does trigger the action, as does using the mouse.

      Attachments

        1. qtbug.cpp
          2 kB
          Paul Strauss
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            pss959 Paul Strauss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes