Qt ------ 断开某对信号与槽的connect QMetaObject::Connection dis; dis = connect(this,&TcpSocket::readyRead,this,&TcpSocket::readData); disconnect(dis);