Hello,

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.

Regards,
Detlev-- 
*Detlev Offenbach*
det...@die-offenbachs.de
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to