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

More than one XmlListModel - Lists randomly show data from wrong model

    XMLWordPrintable

Details

    • eac733e658422af2ceefea294023d89fc6512143

    Description

      I'm using more than one XmlListModel simultaneously, each having its own ListView to show the data.

      From time to time (annoyingly often but not nearly every time, perhaps one out of 20 times) I see that the data gets mixed up: List A is showing data from model B (and usually List B still shows data from model B).

      All XmlListModel's source's are some http://..... urls.

      The ListViews don't get their model changed at any time - they are just set once, but models source is updated rather frequently based on user action.
      XmlRole names are all different for each model (although some of the queries are the identical), still the delegate A sometimes shows data from delegate B.
      Source url for each XmlListModel are also unique.

      When this happens, there are some XPath syntax errors (XPST0081) on the logs, because the XmlListModel's have different namespace definitions and requirements.

      Error XPST0081 in file:///usr/bin/applauncherd.bin, at line 2, column
      122: No namespace binding exists for the prefix gd in gd:comments
      Error XPST0081 in file:///usr/bin/applauncherd.bin, at line 2, column
      122: No namespace binding exists for the prefix media in media:group

      The namespaces in the errors above, from model A, are set and required only for model B.

      Attachments

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

        Activity

          People

            bealam Bea Lam (closed Nokia identity) (Inactive)
            mikmotto Mikko Möttönen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes