如何将网页保存在Qt WebKit中作为“另存为完整网页” [英] How to save webpage in Qt WebKit as "save as complete webpage"
本文介绍了如何将网页保存在Qt WebKit中作为“另存为完整网页”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用Qt WebKit保存网页,类似于另存为完整网页。
I need to save web page using Qt WebKit similar to "Save as complete webpage".
以下是我的要求,
- 保存索引html文件,维护实体编码。
- 需要下载所有链接图像和其他资源。
- 需要将html页面中的资源路径更改为本地下载路径。
- 需要保持网页当前状态。
- Save the index html file, maintaining entity encoding.
- Need to download all linked images and other resources.
- Need to change resource path in html page to local downloaded path.
- Need to maintain webpage current state.
我可以使用Qt和JavaScript来执行此操作。
I can use Qt and JavaScript to do this.
请提供一些相关信息。
谢谢
推荐答案
如何将html保存到本地系统并调用你何时需要setHtml()?
how about save the html to local system and call setHtml() when you need it?
这篇关于如何将网页保存在Qt WebKit中作为“另存为完整网页”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文