Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.7, 5.14.1
-
None
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.