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

QDate functions for date/month names ignore QLocale::setDefault()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.2
    • None
    • Windows 7 (Bulgarian system locale), MinGW

      It appears that QDate::shortDayName(), QDate::longDayName(), QDate::shortMonthName() and QDate::longMonthName() ignore the locale set with QLocale::setDefault() and use the system locale instead. Is this the expected behaviour?

      Example code:

      // Both of these are set to the same localized string
      ui->label->setText(QDate::longDayName(1));
      QLocale::setDefault(QLocale::English);
      ui->label_2->setText(QDate::longDayName(1));
      

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

            thiago Thiago Macieira
            daggerstab Bogdan Marinov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes