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

The Calendar Model doesn't update its from/to dates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.7, 5.14.1
    • Quick: Controls 2
    • None
    • All

    Description

      In QML I create an instance of CalendarModel and later (when the component is complete already) change the property to but the model doesn't get updated.  I took a look at the function setTo(...) in the source code file of the component qtquickcontrols2/src/imports/calendar/qquickcalendarmodel.cpp.

      In case if a set date and a new date are not equal, it calls the function populate(...) and after that assigns the new coming date to the class member to. However the populate(...) function tries to calculate the amount of months based on class members from and to which are not updated yet. As the result, it gets the same amount of months which was calculated before even though it updates values of to and from.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            anatolyk Anatoly Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes