Hi,
I'm using a QWebPage without a QWebView because I want to render the contents of an HTML file onto a QPixmap/QImage.
I want the loading of the page to be done synchronously, not asynchronously which is the default. The default way is to call QWebFrame::setHtml()
or QWebFrame::setContent()
, but this loads images asynchronously. What I want is some sort of blocking function call, something like QWebFrame::waitUntilLoadFinished()
after which I could just call render()
and be done with it.
I can't find a way to do this. Am I missing something?