Nobody ?
Still got the same issue - spike in memory usage and WebCoreNode leak message after program ends, code is almost the same:
void MainWindow::replyFinished(QNetworkReply *reply)
{
QWebPage page;
QWebFrame *frame = page.mainFrame();
QByteArray html
= reply
->peek
(reply
->size
());
//~10kB frame->setContent(html);
QWebElement htmlElement = frame->documentElement();
...
}
void MainWindow::replyFinished(QNetworkReply *reply)
{
QWebPage page;
QWebFrame *frame = page.mainFrame();
QByteArray html = reply->peek(reply->size()); //~10kB
frame->setContent(html);
QWebElement htmlElement = frame->documentElement();
...
}
To copy to clipboard, switch view to plain text mode
I do this only for the access to html element contents, page is not showed visually anywhere.
Bookmarks