Disconnect and later reconnect a Qt signal

感情迁移 提交于 2019-12-10 16:40:06

问题


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?


回答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.



来源:https://stackoverflow.com/questions/14144415/disconnect-and-later-reconnect-a-qt-signal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!