Parse error does not set XMLListModel.status as XmlListModel.Error
QML and Qt Quick
3
Posts
2
Posters
1.0k
Views
1
Watching
-
wrote on 24 Oct 2013, 13:40 last edited by
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?
-
wrote on 27 Oct 2013, 05:11 last edited by
I think it's a bug. What is the version you are getting this error?
-
wrote on 28 Oct 2013, 14:41 last edited by
I am using the latest, Qt 5.1.
3/3