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

QCalendarWidget doesn't show localized year properly

    XMLWordPrintable

Details

    • Linux/X11
    • b0797cfed63d14707249a85e09c03177595a4df8

    Description

      1. run calendarwidget example
      2. set locale to Arabic/Egypt
      3. press year button and set it to another year

      Expected behavior: calendarwidget shows localized year at the beginning and change the month doesn't change the localized year back to numbers.

      Current behavior: calendarwidgets year is changing from localized to non localized and back, should be consistent.

      The problem comes from, that void QCalendarWidgetPrivate::updateNavigationBar() is setting number instead of localized string with yearButton->setText.
      yearButton->setText(q->locale().toString(m_model->m_shownYear)); may be a fix.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            karimpinter Karim Pinter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes