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

QKeySequence::toString(...) does not work as expectation

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      https://doc-snapshots.qt.io/qt6-dev/qkeysequence.html

       

      define a QKeySequnce variable (has tried both QKeySequence::SequenceFormat)

      QKeySequence("Ctrl+Q,Q", QKeySequence::PortableText)
      QKeySequence("Ctrl+Q,Q", QKeySequence::NativeText)
      

      then call QKeySequence::toString() to print it in console or file

       

      it prints below strings:

      Ctrl+垿\uDFFF, Q, Q
      

      expect to be

      Ctrl+Q,Q

       

       

       

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            hiweed hiweed mandriva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes