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

Provide a Locale API for QML similar to QLocale

    XMLWordPrintable

Details

    • 88fefbc68ddcbe99e718a07c5f25e5d28c839439

    Description

      The javascript parse function doesn't handle some aspects of localized integer representations such as group separators, which is inconsistent with Qt's integer parsing and validation. Specifically IntValidator will accept strings which be won't fully parsed using parseInt().

      Exposing QLocale's string parsing and formatting functions in QML would provide capabilities consistent with what is already available in C++.

      There are similar requirements for access to other APIs of QLocale, for example the measurement system and currency formatting. The entire QLocale API is also required in QML.

      Attachments

        Issue Links

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

          Activity

            People

              martjone Martin Jones (closed Nokia identity) (Inactive)
              denexter Andrew den Exter (closed Nokia identity) (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes