[PyQt] PyQt4 issue

Detlev Offenbach detlev at die-offenbachs.de
Sun Mar 3 18:15:40 GMT 2013


I am observing a strange issue with latest PyQt4 and Qt 5.0.1. The later was compiled by 
myself. Setting the URL of a QWebView with QWebView.setUrl() results in a seg fault or 
other errors. Executing these steps in a Python3 shell result in a strange error.

>>> from PyQt4.QtCore import QUrl
>>> from PyQt4.QtGui import QApplication
>>> from PyQt4.QtWebKit import QWebView
>>> import sys
>>> app=QApplication(sys.argv)
Qt at-spi: error getting the accessibility dbus address:  "The name org.a11y.Bus was not 
provided by any .service files" 
Accessibility DBus not found. Falling back to session bus.
>>> v=QWebView()
>>> v.setUrl(QUrl("about:blank"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: QWebView.setUrl(QUrl): argument 1 has unexpected type 'QUrl'

However, according to the Qt5 docs, this method has QUrl as the first parameter. It worked 
before upgrading PyQt4 and it works with Qt4.

*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130303/45a3b2f1/attachment.html>

More information about the PyQt mailing list