Created:
QWebView view;
file.close();
view.setHtml(string);
view.show();
QWebView view;
QFile file("test.htm");
file.open(QIODevice::ReadOnly | QIODevice::Text);
QString string = file.readAll();
file.close();
view.setHtml(string);
view.show();
To copy to clipboard, switch view to plain text mode
with test.htm looking:
<html>
<body>
<h1>Test</h1>
T
</body>
</html>
<html>
<body>
<h1>Test</h1>
T
</body>
</html>
To copy to clipboard, switch view to plain text mode
Everything looks fine, QWebView displayed page correctly
Bookmarks