Thanks for your reply! You got me on the right track. This appears to be a display bug with Qt Creator. There is some sort of buffer in the debug output that causes a delay. The first thing I did was replace qDebug() with fprintf(stderr...), printing one character at a time. Doing this, I noticed that the output to each fprintf() call was truncated, but that subsequent calls to fprintf() completed the previous call's output. This does not happen using qDebug (it must clear the buffer each time).
In any case, the good news is that the webpage does seem to be downloaded correctly, as verified by a) writing the output to a file b) converting to a QString and using a regular expression to look for the terminating </html>. The only problem is, I can't figure out how to display it within Qt Creator (using the Watch menu doesn't work either - all I see is a small image of a musical eighth note. Charming.).




Reply With Quote


Bookmarks