[PyQt] Cancelling QtWebEngine authentication with PyQt

Phil Thompson phil at riverbankcomputing.com
Wed Dec 14 11:08:15 GMT 2016


On 6 Dec 2016, at 6:06 am, Florian Bruhin <me at the-compiler.org> wrote:
> 
> 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...

Sorry, I'm not understanding. What is it you want to do in Python that you can't?

Phil


More information about the PyQt mailing list