Ok in the Documentation it says that I can use the classes with out the QWebView. (since I don't need to display the entire page.)
But I can't find ::setURL() or ::load(QUrl) on QWebPage or QWebFrame can't get it to work.
So when you say start with QWebFrame::findFirstElement(). Am guessing this is after I have loaded the page URL.
Since from what I managed to understand is that QWebPage is the entire page and the QWebFrame is the content on that page while QWebElement is used to search the content?
EDIT: I found this. http://www.qtcentre.org/threads/5383...parent-classes
I Think i know what to do now.Qt Code:
void MainWindow::replyFinished(QNetworkReply *reply) { QWebPage page; QWebFrame *frame = page.mainFrame(); frame->setContent(html); QWebElement htmlElement = frame->documentElement(); ...To copy to clipboard, switch view to plain text mode![]()




Reply With Quote
Bookmarks