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

Calendar control locale changes with delay

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11.0 Beta 4
    • Quick: Controls 2
    • None

    Description

      Create a Calendar (in Qt.labs of Controls2)

      Create a TextField (or any other element) for changing MonthGrid's locale

      On first change locale doesn't change and on second change the first locale will be apply.

      Because on QQuickMonthModel::setLocale changing locale written after dataChanged.

      http://code.qt.io/cgit/qt/qtquickcontrols2.git/tree/src/imports/calendar/qquickmonthmodel.cpp#n146

       

      Solution:

      Remove all parameters of d->populate and force it to use variables from itself (private data).

       

      And:

      The qml-calendaring system on controls2 side will be coverage this bug

      https://codereview.qt-project.org/#/c/228407/

       

      Gerrit review:

       https://codereview.qt-project.org/#/c/229314/

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            blackdal Hamed Masafi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change