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

QLocale reads country from language.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.12.2
    • Core: Locales (i18n)
    • None
    • Windows 10
    • Windows
    • 21
    • Qt6_Foundation_Sprint 22

      Even my country is set to Germany, this code snippet returns United States which is Regional Format set in Windows Region&Language Settings. ( English,United States ). But when I change it to (English,Germany) it returns Germany. QtLocale tries to get country from several settings but if the system has a country set,should not it be the highest priority to get country of system ? Country and regional format can be different.  

      qDebug()<<QLocale::countryToString(QLocale::system().country());

        1. Capture.PNG
          17 kB
          Muhammet Ali Asan
        For Gerrit Dashboard: QTBUG-75845
        # Subject Branch Project Status CR V

            Eddy Edward Welbourne
            muhammet.asan Muhammet Ali Asan
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes