Pyside/PyQT WebView不加载图像,特别是Google图像搜索的结果

Pyside/PyQT WebView不加载图像,特别是Google图像搜索的结果,webview,pyqt,pyside,Webview,Pyqt,Pyside,只是尝试一下Pyside WebView。我对背景中发生的事情缺乏了解,我发现很难理解为什么图像没有加载: from PySide.QtCore import * from PySide.QtGui import * from PySide.QtWebKit import * import sys app = QApplication(sys.argv) webView = QWebView() webView.load(QUrl('https://www.google.si/search?q

只是尝试一下Pyside WebView。我对背景中发生的事情缺乏了解,我发现很难理解为什么图像没有加载:

from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtWebKit import *
import sys

app = QApplication(sys.argv)
webView = QWebView()
webView.load(QUrl('https://www.google.si/search?q=cats&newwindow=1&source=lnms&tbm=isch&sa=X&ei=NlOgU4n6IpPX7AbR7IDICA&ved=0CAgQ_AUoAQ&biw=1097&bih=557'))
webView.show()
app.exec_()
我发现: 然而,它不是越过我的头,就是没有关系。更有可能是第一个


谢谢你的帮助

请检查路径中是否没有自定义qt.conf。pyside正在尝试加载qt.conf(如果路径上存在)。qt.conf可用于覆盖指向qt插件的路径,如果它包含无效路径,则qt运行时找不到插件


更准确地说,在可执行路径上检查qt.conf,下面是pyside的代码,在pyside模块加载时执行:

# Check if there is no default qt.conf in executable folder
exec_prefix = os.path.dirname(sys.executable)
qtconf_path = os.path.join(exec_prefix, 'qt.conf')
if os.path.exists(qtconf_path) and not force:
    return

如果exec_前缀路径上存在qt.conf,那么pyside不会尝试配置qt运行时,而是让qt运行时本身绑定exec_前缀路径上的qt.conf

在Python 3.3和Windows 7上的pyside 1.2.1上对我有效。我看到的页面或多或少与我的浏览器完全相同。我的设置完全相同,Windows 7为64位。对我来说也是如此,我也使用Python 3.3 64位和PySide from。请检查路径中是否没有自定义qt.conf。pyside正在尝试加载qt.conf(如果路径上存在)。qt.conf可用于覆盖指向qt插件的路径,如果它包含无效路径,则qt运行时找不到插件。更确切地说,qt.conf是在可执行路径上检查的,以下是pyside中的代码,当pyside模块加载时执行:exec_prefix=os.path.dirname(sys.executable)。如果exec_前缀路径上存在qt.conf,那么pyside不会尝试配置qt运行时,而是让qt运行时本身在exec_前缀路径上绑定qt.conf。