1、连接
信号与槽:
1对1
1对多
多对1
信号与信号
1对1
2、断开
信号与槽
disconnect(res);(QMetaObject::Connection res:连接的返回值)
1对1:disconnect(this , signal, this , slot);
1对多:disconnect(this , signal, 0, 0);
多对1:disconnect(0, 0, this, slot);
多对多:disconnect(this, 0, this, 0);
disconnect(this, 0, 0, 0);
disconnect(0, 0, this, 0);
QT 信号与槽
最新推荐文章于 2024-06-24 18:28:06 发布