Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.2, 5.5.0
-
None
-
Linux
-
8e47405edb5112e2b0403e536aaecd5c14f09966
Description
MapItemView is not showing model content changes notified with dataChanged signal.
This is the case for editable models based on QAbstractListModel as well as QML ListModel.
The included file contains a simple project using a Map filled with a MapItemView which is using either a C++ model or a QML model. It is possible to switch from one model to another. The C++ update its content every seconds whilst the QML model can be updated by clicking on the Map. The MapItemView displays the element showing QMapItem rotated with the model item Azimuth property and display the Azimuth property as text.
One can see the items remains with the same Azimuth whereas the models are actually modified. A list view shows the model contents and it is well reflecting the model changes.
Each time the model is switch from one type to another the MapItemView gets updated.
When adding/removing a new item into the model, the MapItemView reacts normally - only modification of existing items is not shown.