defining and calling QML functions directly from Python
Phil Thompson
phil at riverbankcomputing.com
Sat Sep 25 11:28:12 BST 2021
On 24/09/2021 19:24, Stefan Seefeld wrote:
> Thanks Maxime,
>
> Yes, thanks for sharing your QMLWrapper class.
>
> Meanwhile, I have applied the attached patch to solve my current
> problem. With that, I'm able to call QML functions even from
> non-primary threads.
>
> Phil, do you think this is a sensible fix ? Feel free to incorporate
> this into PyQt !
Seems reasonable, however should the GIL be released before the call to
invoke() and re-acquired afterwards?
Phil
More information about the PyQt
mailing list