QProcess > QXmlStreamReader problems (premature end of document)
-
This post is deleted! -
i guess you have to listen to QProcess::finished() signal. If the program exited without an error you should read the stdout of the program.
I think the cases where it won't work are that you (QXmlStreamReader) try to read the data it has output but hasn't completely parsed the XML yet.So start the QProcess first, when it has finished read the stdout and then pass it to the QXmlStreamReader.