Hi,

I'm quite new to PySide and Qt in general, so maybe I'm missing
something obvious. I tried to put together simple webview-window
showing https-page (with self signed certificate). Something like
this:

def on_ssl_errors(reply, errors):
   url = unicode(reply.url().toString())
   reply.ignoreSslErrors()
   print "SSL certificate error ignored: %s" % url

app = QtGui.QApplication(sys.argv)
webview = QtWebKit.QWebView()
webview.page().networkAccessManager().sslErrors.connect(on_ssl_errors)
webview.load(QtCore.QUrl("https://www.mysite.com/";))
webview.show()
sys.exit(app.exec_())

With Pyside this doesn't work, I get "RuntimeError: Internal C++
object already deleted" for line webview.page().network... When I
replace chained method calls with:

page = webview.page()
page.networkAccessManager().sslErrors.connect(on_ssl_errors)

It kind of "works", on_ssl_errors() is called as expected and no
errors are shown, but the webpage is not shown either! With PyQt4 both
versions of the code work as expected. I'm using current git version
of PySide on Ubuntu 10.04. Am I missing something or is this a bug in
PySide?

-Perttu
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to