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

Add a locale property to validators

    XMLWordPrintable

Details

    Description

      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"
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-23713
        # Subject Branch Project Status CR V

        Activity

          People

            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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes