[PyQt] disconnect everything connected to an object's signals

Phil Thompson phil at riverbankcomputing.com
Thu Jun 18 11:18:11 BST 2009


On Thu, 18 Jun 2009 11:27:20 +0200, TP <paratribulations at free.fr> wrote:
> Hi everybody,
> 
> Qt Assistant says that:
> 
> ####
> "Disconnect everything connected to an object's signals:
>         disconnect(myObject, 0, 0, 0)"
> 0 may be used as a wildcard, meaning "any signal", "any receiving
object",
> or "any slot in the receiving object", respectively.
> ####
> 
> But if I do:
> 
> disconnect( myObject, 0, 0, 0 )
> 
> I obtain:
> "
>     disconnect( myObject, 0, 0, 0 )
> TypeError: disconnect() takes exactly 1 argument (4 given)
> "
> 
> What is the problem?
> My machine: Linux, Qt 4.4.0, PyQt 4.4.4

PyQt's old connection API doesn't support all the options that Qt does. The
new API is more powerful.

Phil


More information about the PyQt mailing list