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

XmlListModel xpath queries broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.7.4
    • XML: QtXmlPatterns
    • Windows

    Description

      The following code crashes with qmlviewer (and other QML applications also):

      import QtQuick 1.1

      Rectangle {
      id: root
      width: 300; height: 300

      XmlListModel {
      id: model
      xml: "<a></a>"
      query: "/*"

      XmlRole

      { name: "isA"; query: "name()='a'" }

      }
      }

      Fix for memory leak in QXmlQuery has caused this crash. Reverting SHA 23267553627ac3c4cbcd918283bee8e665deeff9 will solve the problem.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes