Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用类似于“另存为完整网页”的Qt WebKit 保存网页。
以下是我的要求,
我可以使用 Qt 和 JavaScript 来做到这一点。
请为此提供一些意见。
谢谢
如何将 html 保存到本地系统并在需要时调用 setHtml()?
您可以使用 HTML 解析器来解析当前页面,然后查找所有图像(xpath "//img"),下载它们的文件,并更改它们的 src 属性。