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

Add a locale property to validators

XMLWordPrintable

      QIntValidator and QDoubleValidator support locale specific validation but there is no way to change the locale used from QML.

      IntValidator and DoubleValidator should have a property for setting this which takes a takes either a locale string or object.

      Something like:

      IntValidator {
          locale: Qt.locale("de_DE")
      }
      

      Or possibly just:

      IntValidator {
          locale: "de_DE"
      }
      

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

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes