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

QKeySequence(<QString>) doesn't parse correctly when we have a space

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4: Low
    • 6.8.4, 6.9.1, 6.10.0 FF
    • 6.7.3
    • GUI: Menus
    • None
    • Linux/X11, Windows
    • ada885dfd (dev), b26e30e1b (6.9), 48c16d2d2 (6.8)

    Description

      When we create a qaction with we shortcut parsed from a QString with a space it creates an invalid shortcut.

       

              QAction *b = new QAction("test1action", this);
              b->setShortcut(QKeySequence("Ctrl + Del"));
       

      return shortcut == ""

       

      Space breaks it.

       

      I created an autotests for it.

      Is it possible to fix it please ?

      Thanks

      Attachments

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

        Activity

          People

            dfaure_kdab David Faure
            montel Montel Laurent
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes