Save HTML from minibrowser example
Unsolved
General and Desktop
-
I have been using Qt 5.7. The minibrowser example works great at displaying a webpage. Just wondering how I would go about saving the html that is displayed. Thanks.
@bandito
i guess you have to use the runJavaScript method:WebView { id: webView anchors.fill: parent url: initialUrl onLoadingChanged: { if (loadRequest.status === WebView.LoadSucceededStatus) webView.runJavaScript("document.documentElement.innerHTML", function(result) { console.log(result); }); } }
(untested)