Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

QXmlStreamReader Problem

$
0
0
Hi, I’am having trouble reading from an Xml file. QFile file("forecast.xml");  file.open(QIODevice::ReadOnly);    QXmlStreamReader xml(&file);  while (!xml.atEnd())  {  xml.readNext();   name = xml.name().toString();  }  if (xml.hasError())  {   name = xml.errorString();  }  file.close(); Error String is premature end of document. I got the Feeling that the file isnt read. Thanks, Regads, Maddin

Viewing all articles
Browse latest Browse all 2113

Trending Articles