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

QWidget::addAction not adding all standard key shortcuts

    XMLWordPrintable

    Details

    • Platform/s:
      All

      Description

      We have a bunch of convenience functions for adding actions to widgets/menus/toolbars. Some of them take a QKeySequence as a way to produce a shortcut for the action. Which allows you to pass a `QKeySequence::StandardKey` due to the implicit constructor. The issue is that the implicit constructor will only pick the first shortcut, not all the possible standard shortcuts. We should probably add overloads to QWidget and friends that take a QKeySequence::StandardKey, so that we can call addShortcut*s* on the resulting action.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes