I have some code downloading some file via QHttp, it works fine normally. WinXP, Qt4.2
However, if I disconnect while the download is in progress (e.g., disconnect the network cable), my QHttp object (immediately) gives me a requestFinished(int, bool) signal but says there is no error (ie the bool parameter is false). I also get a done() signal indicating no error (ie the bool parameter is also false). So my code assumes the file is complete when it is actually just partially downloaded, and then operates on a corrupt file.
Is there a way in Qt to detect this error case properly?
Bookmarks