[PyQt] How to disconnect all connected signals of an object

Detlev Offenbach detlev at die-offenbachs.de
Wed Apr 13 18:20:22 BST 2011


Hello,

what is the correct way to disconnect all signal connected to an object? I 
tried it with code like

browser.disconnect()

but that raises an exception

TypeError
"arguments did not match any overloaded call: QObject.disconnect(QObject, 
SIGNAL(), QObject, SLOT()): not enough arguments QObject.disconnect(QObject, 
SIGNAL(), callable): not enough arguments"

According to the Qt documentation that should work. Please note, that my code 
uses new-style signal/slots.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the PyQt mailing list