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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes