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

XmlListModel.reload appends rather than reloads

    XMLWordPrintable

Details

    • fd2c621c0f291cbfea5bd0c85e19f2cc6ae07bed

    Description

      In 4.6.0 XmlListModel.reload did the right thing - it cleared down the model and reloaded it.

      In 4.7 TP it looks like reload() is not clearing the existing data which results in a duplicate set every time its called.

      I have attached an example which reproduces the problem. Clicking on the red rectangle should reload the model but instead it appends duplicates.

      Attachments

        1. feed.xml
          41 kB
        2. xmllistview.qml
          0.9 kB
        3. xmllistview-2.qml
          1.0 kB
        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)
            pdrummond Paul Drummond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes