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

MapItemView is not reflecting model items changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0
    • 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.

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            charby Guillaume Charbonnier
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes