Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Parse error does not set XMLListModel.status as XmlListModel.Error
Forum Updated to NodeBB v4.3 + New Features

Parse error does not set XMLListModel.status as XmlListModel.Error

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vladv
    wrote on 24 Oct 2013, 13:40 last edited by
    #1

    I am loading a bad XML into a XMLListModel and although I get an error displayed at the console (“Error FODC0002 in tag:trolltech.com,2007:QtXmlPatterns:QIODeviceVariable:src, at line 12, column 22: Opening and ending tag mismatch.”), the status property reads “XmlListModel.Ready”, with a count of zero elements in the model. Is this standard behaviour? I expected to find the status as “XmlListModel.Error”, and the error message available throught the errorString method.

    Is there any way to know at run time that the loaded XML does not parse correctly?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dasun
      wrote on 27 Oct 2013, 05:11 last edited by
      #2

      I think it's a bug. What is the version you are getting this error?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vladv
        wrote on 28 Oct 2013, 14:41 last edited by
        #3

        I am using the latest, Qt 5.1.

        1 Reply Last reply
        0

        3/3

        28 Oct 2013, 14:41

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved