否则会出现no matching member function for call to 'connect'这样的报错 建议采用方式一的方式建立信号槽,更容易找到错误 方式一:connect(tcpSocket,&QTcpSocket::disconnected,this,&TcpServer::onClientDisconnected); 方式二:connect(tcpSocket,SIGNAL(disconnected()),this,SLOT(onClientDisconnected()));...
参数不对,建议把那几个实参的声明贴出来看看