[PyQt] QNetworkAccessManager.sslErrors in PyQt 5.2.1

Glenn Ramsey gr at componic.co.nz
Wed Jun 11 09:17:34 BST 2014


Hi,

I am trying to implement a fix for loading pages via https in QtWebKit as 
described in this thread:

http://www.mail-archive.com/pyqt%40riverbankcomputing.com/msg21139.html

It suggests to do this:

         self.connect (self.browserWindow.page().networkAccessManager(),
SIGNAL("sslErrors (QNetworkReply *, const QList<QSslError> &)"),
self.sslErrorHandler)

     def sslErrorHandler(self, reply, errorList):
         reply.ignoreSslErrors()
         print ("SSL error ignored")


When I try it in PyQt5 (5.2.1)
 
self._webView.page().networkAccessManager().sslErrors.connect(self.handleSslErrors)

I get

AttributeError: 'QNetworkAccessManager' object has no attribute 'sslErrors'

Is this a bug, or am I doing it wrong?

Glenn


More information about the PyQt mailing list