[PyQt] Cancelling QtWebEngine authentication with PyQt

Florian Bruhin me at the-compiler.org
Tue Dec 6 06:06:22 GMT 2016


Hi,

QtWebEngine requires setting the passed QAuthentication pointer to an
empty QAuthenticator to cancel authentication
("*authenticator = QAuthenticator();" in authenticationRequired), see
the note here:

http://doc-snapshots.qt.io/qt5-5.7/qtwebenginewidgets-qtwebkitportingguide.html#qt-webengine-does-not-interact-with-qnetworkaccessmanager

Unfortunately I can't see a way to do this from PyQt, apart from
using setHtml to display some error (which seems a bit hacky to me):

https://github.com/kovidgoyal/vise/commit/749a9c693e4107c073a90042b079dc658ad73564

Not sure what the best way to solve this would be though...

Florian

-- 
http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20161206/1a63a81e/attachment.sig>


More information about the PyQt mailing list