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

QString fromUcs4 toUcs4 no longer parallel, roundtrip requires deprecated call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Won't Do
    • Affects Version/s: 6.2.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      Since Qt6, QString::fromUcs4 has deprecated passing in uint * and requires char32_t * but there is no toUcs4 call that actually creates a list/array of char32_t only uint.

      So you can not even round trip a call from toUcs4() to QString::fromUcs4 without either using a deprecated method or adding a reinterpret_cast.

      This non-parallelism is silly. Please either remove the fromUcs4 that handles uint* from being deprecated or add in a version of toUcs4 that produces a list of char32_t.

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            kevinhendricks Kevin B. Hendricks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes