[PyQt] Slot disconnection problem

Giovanni Bajo rasky at develer.com
Fri Jul 27 18:43:27 BST 2007


On 7/27/2007 6:41 PM, Phil Thompson wrote:
> On Thursday 26 July 2007 8:27 pm, Arve Knudsen wrote:
>> On 7/26/07, Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
>>> On Thursday 26 July 2007 6:33 pm, Arve Knudsen wrote:
>>>> Hello
>>>>
>>>> I've noticed a problem with PyQt's signal/slot mechanism. If I connect
>>>> a signal to a QDialog subclass instance's accept method without using
>>> SLOT,
>>>
>>>> and not having defined that method in the subclass (i.e., it is defined
>>> in
>>>
>>>> the C++ superclass),  I am not able to disconnect it. I have to use
>>>> SLOT both when connecting and disconnecting for this to work. Is this
>>> intended?
>>>
>>> No - do you have a test script?
>> This should illustrate the problem.
> 
> Fixed in tonight's SIP snapshot. This must have been broken for a long time.

The docs say that PyQt's disconnect() support is incomplete. This might 
be way other people didn't bother to report it (at least, this is why I 
didn't) :)
-- 
Giovanni Bajo



More information about the PyQt mailing list