Remove ScrollBars from QWebEngineView or QWebEnginePage

≯℡__Kan透↙ 提交于 2019-12-04 03:02:18

Just set QWebEngineSettings::ShowScrollBars to false which is introduced in Qt 5.10

See QWebEngineSettings::WebAttribute

Changing css style of the webpage worked. I've used

<style type="text/css">
body {
    overflow:hidden;
}
</style>

but bad luck for those, who do not have access for css of the webpage you are trying to show the way you want.

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