How do I get PySide QWebView to display all images?

南笙酒味 提交于 2019-12-11 12:46:58

问题


The simplest PySide app shown below with a QWebView is showing webpages which have many but not all images missing. It is not consistent on whether it's gif, pngs or jpgs that are causing the problem. It might be something to do with the size of the image that is being downloaded.

from sys import exit
from PySide.QtGui import QApplication
from PySide.QtWebKit import QWebView, QWebPage

app = QApplication([])
webview = QWebView()

webview.show()

webview.load("http://bbc.co.uk")

exit(app.exec_())

My environment is a PySide=1.1.2 installed using easy_install into a Python 2.7 virtualenv running on a Windows 7 machine.

I looked for a setting to do with the size of images in the cache, which was one of my suspicions, but I can't find anything. The rest of the page loads correctly, including all the js and css parts.

Any advice as to what could be wrong here would be greatly appreciated.

来源:https://stackoverflow.com/questions/13078357/how-do-i-get-pyside-qwebview-to-display-all-images

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