PDA

View Full Version : How to save a Qwebview as an html file



richardander
4th June 2009, 00:11
Hi,

I can use QWebview to display a website. Is there a way to save the webpage as a html file?

thank you!

wysota
4th June 2009, 00:14
QNetworkAccessManager or QWebFrame::toHtml() if you already have it displayed in a web view.

richardander
5th June 2009, 01:07
Hello,

Your suggestion works.

However, it turns out that only the html file is saved. The css files and images in the same folder won't be saved. Is there any way to copy them all?

thank you!