[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Slot disconnection problem
From:       Giovanni Bajo <rasky () develer ! com>
Date:       2007-07-27 17:43:27
Message-ID: 46AA2EBF.5080409 () develer ! com
[Download RAW message or body]

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@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

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic