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

QLocale & System Digit/Money Grouping Settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.6, 5.3.1, 6.5.0 FF
    • Core: Locales (i18n)
    • None
    • Windows 8.1

      Qt does not respect underlying system's locale settings for digit/money grouping. This setting is present in "Clock, Language and Region" in Control Panel of Windows OS'es. SS is attached.

      In windows you can access this value by LOCALE_SGROUPING using GetLocale* functions.
      Also "struct lconv" provides "grouping" field for accessing this setting. (Probably for unix based systems)

      Current Qt versions only fetch grouping separator field and assume that this setting is "3;0" (or "3\0") by default. I'm currently workaround this bug by calling QLocale::setNumberOptions(numberOptions() | QLocale::OmitGroupSeparator) if grouping setting is "0". But this is nowhere near perfect.

        1. ss.png
          81 kB
          Berk Demirkir
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            bdemirkir Berk Demirkir
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes