[PyQt] moveToThread() does not cope with functools.partial

Giuseppe Corbelli giuseppe.corbelli at copanitalia.com
Tue Apr 23 14:27:17 BST 2013


On 23/04/2013 14:57, Phil Thompson wrote:
>> Please see the minimal test code below. In short connecting a signal to
> a
>> functools.partial slot breaks the expected moveToThread behaviour.
>> Reasonable, I'd say, once you think about it. I'm just asking some
>> suggestion
>> about how this issue can be addressed. I thought about reimplementing
> some
>> signal class with a connect_partial method that stores bound args.
>> Python 2.7.3, Qt 4.8.2, PyQt 4.10 on Linux.
>
> Should be fixed in tonight's PyQt4 snapshot.

I'm curious to understand how you fixed it. Can I ask for a diff or some other 
pointer to look at?

-- 
             Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318  Fax: +390302659932
E-mail: giuseppe.corbelli at copanitalia.com


More information about the PyQt mailing list