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?
Asked
Active
Viewed 2,399 times
4
-
Not that I know of. You can block all signals from being emitted from a QObject though. Could you explain your use-case for this? – Mat Jan 03 '13 at 18:13
-
I'm trying to subclass QTcpServer, and I need to suppress `newConnection()`, see http://stackoverflow.com/q/14143730/492336 – sashoalm Jan 03 '13 at 18:20
1 Answers
1
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.

phyatt
- 18,472
- 5
- 61
- 80