PDA

View Full Version : QML Read & Write XML



Mathan
7th September 2016, 12:49
Hi,

I need to write and read the xml file for storing the information like username, list of downloads etc., Can it possible in Qt 5.7?

Please share the code snippets how to read and write the XML and store it in device.

anda_skoa
7th September 2016, 13:28
Qt has had XML support since Qt3, newer versions expanded on that.

Some of the classes are in the QtXml module, e.g. QDomDocument, others are even in QtCore, e.g. QXmlStreamReader and QXmlStreamWriter.

All of these are very well documented, including official examples.

Cheers,
_