QWebView* webview = new QWebView(this);
webview->load(QUrl("file:////home/zanilia/1.html"));
webview->setMinimumSize(1920,1080);
webview->adjustSize();
webview->show();
QWebElement body = document.firstChild();
QWebElement firstParagraph = body.firstChild();
firstParagraph.setInnerXml("<span>test<strong> succeed</strong></span>");
webview->reload();
webview->show();
1.html
<html>
<body>
<p>First Paragraph</p>
<p>Second Paragraph</p>
</body>
</html>
qt 操作dom时webview窗口显示的内容并没有发生改变