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: Unresolved
    • P4: Low
    • None
    • 6.7.3
    • GUI: Menus
    • None
    • Linux/X11, Windows

    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

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change