[PyQt] Object lifetime issues with QWebEngineUrlSchemeHandler and QBuffer
Kovid Goyal
kovid at kovidgoyal.net
Thu Sep 15 04:37:07 BST 2016
On Wed, Sep 14, 2016 at 04:50:31PM +0200, Florian Bruhin wrote:
> Hey,
>
> * 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
> QWebEngineProfile.defaultProfile())
I dont use defaultProfile, instead I create a new profile object in
python. See create_profile() in settings.py
--
_____________________________________
Dr. Kovid Goyal
http://www.kovidgoyal.net
http://calibre-ebook.com
_____________________________________
More information about the PyQt
mailing list