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

The QML VisualDataModel Element does not process the dataChanged signal from the QAbstractItemModel properly.

    XMLWordPrintable

Details

    • c43cf8ad4f1ba7d6d9e2403520a7e54ceadee60c

    Description

      The VisualDataModel will not process dataChanged signals properly for QModelIndexes that have valid parent items. Since the VisualDataModel allows the rootItem to be set there will be cases where the items in the list have a valid parent. It should also verify that the QModelIndexes that are being updated are from the same branch of the tree as those that are currently being displayed.

      Please see void QDeclarativeVisualDataModel::_q_dataChanged(const QModelIndex &begin, const QModelIndex &end) in qdeclarativevisualitemmodel.cpp.

      I believe other parts of the VisualDataModel element suffer from this same problem (eg _q_rowsInserted & _q_rowsRemoved).

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            robertd Robert Daniels
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes