defining and calling QML functions directly from Python

Stefan Seefeld stefan at seefeld.name
Sat Sep 25 14:47:01 BST 2021


On 2021-09-25 6:28 a.m., Phil Thompson wrote:
> 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?

Sure, that would make sense (though I think this change is entirely 
orthogonal to the one I propose here).

Stefan
-- 

       ...ich hab' noch einen Koffer in Berlin...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210925/bf625ab3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .signature.png
Type: image/png
Size: 2754 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210925/bf625ab3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stefan.vcf
Type: text/x-vcard
Size: 4 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210925/bf625ab3/attachment.vcf>


More information about the PyQt mailing list