Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
How to get the content (HTML) of an element of a QWebView?
@ QWebElement document = ui->webView->page()->mainFrame()->documentElement();
QWebElement player = document.findFirst("div[id=player]"); ui->webView_2->setHtml(player.toPlainText());
@
Don't work!
The HTML content is returned by QWebElement::toInnerXml()
Is that code executed after the page is fully loaded (in a slot connected to the signal QWebView::loadFinished(bool))?