PDF with QWebView: missing refresh/repaint after loading

妖精的绣舞 提交于 2019-12-01 12:57:28
Massimo Fuccillo

I just solved a similar problem cleaning the QWebView before every pdf load. Be careful with the loadFinished() signal.

In your example:

self.PreviewBox.load(QUrl('about:blank'))

or, in case we don't like 'about:blank' this may be a more portable solution:

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