[PyQt] 5.11: TypeErrors with QWebEngineCookieStore::setCookieFilter

Phil Thompson phil at riverbankcomputing.com
Mon Jun 11 17:51:07 BST 2018


On 11 Jun 2018, at 9:32 am, Florian Bruhin <me at the-compiler.org> wrote:
> 
> Hey,
> 
> I've tried implementing a cookie filter with the Qt 5.11 snapshot
> (sip-4.19.9.dev1806101717, PyQt5_gpl-5.11.dev1806101728, Qt 5.11.1
> branch, GCC 8.1.1 on Archlinux).
> 
> When trying in my real application with a:
> 
>  store = QWebEngineProfile.defaultProfile().cookieStore()
>  store.setCookieFilter(lambda _info: True)
> 
> I get:
> 
>  TypeError: a 'bool' is expected not 'generator'
> 
> I've tried to write a minimal example (attached), but that seems to work
> fine. However, when I add the commented "print", I get:
> 
>  TypeError: 'managedbuffer' object is not callable
> 
> Not sure if that's the same issue, or two different issues?

Should be fixed in tonight's snapshot.

Thanks,
Phil


More information about the PyQt mailing list