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

QKeySequence::keyBindings() for StandardKey(SaveAs) do not return any key sequences

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 68898f6fa (dev)

    Description

      Summary:

      `QKeySequence::keyBindings()` returns a `QList<QKeySequence>`.
      `QKeySequence::StandardKey(63)` returns, correctly, the standard key for 'Save as'.
      However, calling:

      QKeySequence::keyBindings(QKeySequence::StandardKey(63))
      

      returns an empty QList.

      Expected behaviour:
      A QList containing something similar to QKeySequence("Ctrl+Shift+S") should be returned.

      This works with every other StandardKey that I've tested so far. For example, for the standard 'Save' key, a QList containing QKeySequence("Ctrl+S") is returned.

      Background:

      In MuseScore, using Qt, we handle common shortcuts using QKeySequence::StandardKey. This is to provide correct cross-platform implementations without us ourselves having to worry about it too much.

      Multiple testers report this bug, on Windows and Linux, building with different Qt versions.

      Attachments

        For Gerrit Dashboard: QTBUG-72916
        # Subject Branch Project Status CR V

        Activity

          People

            liaqi Liang Qi
            jthistle J T
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes