Qt Disconnect Slot From Signal

The Original IBM PC 5150 - the story of the world's most influential computer - Duration: 27:28. Modern Classic Recommended for you.

Qt Disconnect Slot From Signal

I have a number of different signals connected to one slot. Is there any disconnect function that can be used to disconnect everything connected to a specific slot?

Qt Disconnect All Slots

For example:

@QObject::connect(object1, SIGNAL(a()), receiver, SLOT(slot()));
QObject::connect(object2, SIGNAL(b()), receiver, SLOT(slot()));
QObject::connect(object3, SIGNAL(c()), receiver, SLOT(slot()));@

Now I want a function to disconnect all the signals from receiver’s slot(). There is an option:

@QObject::disconnect(receiver, SLOT(slot()));@

but this connects only the signals in the current object. I want to disconnect ALL signals, without knowing the objects that are connected to the slot.

Qt Slot Sender

Any ideas?