QWebEngineView modify web content before render

自闭症网瘾萝莉.ら 提交于 2019-12-22 01:29:50

问题


I have three questions about QWebengineView (Qt 5.7.0):

  1. How can I modify the web content (add extra html/javascript) during load (before render)

  2. How can I get events when javascript resource included in webpage is loading ( I want to modify them, too).

  3. I get html content by page()->toHtml then set it back by setHtml , but content rendered don't like original (seems to loss format)

Thanks for help!

来源:https://stackoverflow.com/questions/38162751/qwebengineview-modify-web-content-before-render

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!