Search code examples
c++qtsignals-slotsqt-signals

Disconnect and later reconnect a Qt signal


Is there a way to disconnect a Qt signal only temporarily, but store a list of the objects connected to it, so the signal can later be reconnected to them?


Solution

  • http://qt-project.org/forums/viewthread/6820

    This post discusses ways to keep track of the list of connections to a particular signal which could be used for reconnecting it after disconnect is called.