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

QLocale::system() - timeFormat does not get updated during application execution

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 4.6.3
    • (Inactive) Maemo 5
    • None
    • Windows 7 with Nokia Qt SDK 1.0.2.
      Nokia N8 device with firmware 011.012.
    • Linux/Other display system

    Description

      On the Nokia N8 you can launch a Qt application and call the following:
      QString timeFormat = QLocale::system().timeFormat(QLocale::LongFormat);
      The time format string on a phone with the settings set to 24h clock will be:
      h:m:s
      Then without exiting the application, multitask out and change the settings in the phone to use a 12h clock with am and pm. Call the same code again:
      QString timeFormat = QLocale::system().timeFormat(QLocale::LongFormat);
      The time format string is still "h:m:s". Restart the app and look at the time format string again, it is now:
      h:m:s AP
      As it should be.

      It seems as the system locale in Qt is not refreshed when things change in the phone.

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            johpe Johannes Petersson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes