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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.3, 5.9.4, 5.12.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 18.04 LTS, x86_64, Intel i5, gcc
      Windows 10, mingw
    • Platform/s:
      Linux/X11, Windows

      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

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

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            jthistle J T
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes