Thanks!
Set timeout for connection or maximum duration of the ftp job. I have managed to use QTimer for that.
However, I now have another problem.
I connect to QNetworkAccessManager::finished signal, and then read data using reply->readAll(). Problem is reply sometimes appends new line "\n" in between data chunk, causing the xml file to break.
For example, tag <conversion> becomes:
<convers
ion>
This cause xml parser to fail. The xml file itself has many new lines, so I don't to use QString::replace( "\n", "" ), because this will cause entire xml file to be a single line.
How do I fix this problem?
Thanks




Reply With Quote
Bookmarks