断开并稍后重新连接Qt信号 [英] Disconnect and later reconnect a Qt signal
本文介绍了断开并稍后重新连接Qt信号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法暂时断开Qt信号,而是存储一个连接到它的对象的列表,这样信号以后可以重新连接到它们?
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?
推荐答案
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.
这篇关于断开并稍后重新连接Qt信号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文