[PyQt] Object lifetime issues with QWebEngineUrlSchemeHandler and QBuffer

Florian Bruhin me at the-compiler.org
Wed Sep 14 15:50:31 BST 2016


* Kovid Goyal <kovid at kovidgoyal.net> [2016-09-14 17:37:49 +0530]:
> I found you have to keep a reference to the handler. Rather than making
> it global, I simply make it an attribute of the profile object it is
> installed on.

That sounds like a good idea, but doesn't seem to work here (with

> You dont need to keep references around to the buffer object and the
> byte string, as long as you set its parent to the handler instance. See
> vise_scheme.py for an example.

I don't get why this works in vise_scheme.py, but neither in
qutebrowser nor in my minimal example...


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/20160914/d6d991f4/attachment.sig>

More information about the PyQt mailing list