TropicalPenguin
18th December 2010, 17:24
Hello,
Is there any clean way to detect when the HTML content loaded within a QWebView has finished downloading?
The loadFinished() signal doesn't seem quite what I want; to test this I compared the contents of page()->mainFrame()->toHtml() between signals of loadProgress(). On one site the HTML content had changed at progress points of 10, 26 and 27, but beyond that I guess all the progress was due to downloading externally referenced data and perhaps rendering. I'm only curious about the downloading of the HTML content internal to a page.
This assumes that loadFinished isn't emitted until loadProgress() reaches 100, of course, but I'm sure this is reasonable.
Thanks!
Is there any clean way to detect when the HTML content loaded within a QWebView has finished downloading?
The loadFinished() signal doesn't seem quite what I want; to test this I compared the contents of page()->mainFrame()->toHtml() between signals of loadProgress(). On one site the HTML content had changed at progress points of 10, 26 and 27, but beyond that I guess all the progress was due to downloading externally referenced data and perhaps rendering. I'm only curious about the downloading of the HTML content internal to a page.
This assumes that loadFinished isn't emitted until loadProgress() reaches 100, of course, but I'm sure this is reasonable.
Thanks!