[PyQt] Disconnects slot from signal
iMath
2281570025 at qq.com
Thu Dec 4 02:53:45 GMT 2014
print(self.clipboard.dataChanged.disconnect())
# print(self.clipboard.dataChanged.disconnect(self.detectUrl)) #
# print(QObject.disconnect(self.clipboard, SIGNAL('dataChanged()'),self.detectUrl))
I have tried the three,but only the uncommonted one worked,is there something wrong in my code with the other two?
I think it would be better to let disconnect([slot]) in the New-style Signal and Slot return a bool value to hint if the connection is broken or not ,currently just return none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141204/6f66b196/attachment.html>
More information about the PyQt
mailing list