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

In QLocale's number-to-string functions, support precision and width options

    XMLWordPrintable

Details

    • All
    • 5
    • Foundation PM Staging

    Description

      QString::arg()'s overloads for integral types have fieldWidth, base and fillChar parameters, enabling callers to control how the number is presented. QLocale::toString()'s matching overloads don't support such control, even though the QLocaleData methods it uses to do the job do support them (since they're how QString at least used to do its version). So we have the ability to do formatted localised numbers, but we don't expose it to users (except via QString::arg()'s %L formats, which are limited to the default or system locale).

      We should extend QLocale::toString() overloads to support these parameters.

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            Eddy Edward Welbourne
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes