connectsocket SIGNALconnected this SLOTconnected; connectsocket SIGNALdisconnected this SLOTdisconnected; connectsocket SIGNALreadyRead this SLOTreadyRead;写成lambo形式
connect(socket, &QIODevice::connected, this, &MyClass::connected); connect(socket, &QIODevice::disconnected, this, &MyClass::disconnected); connect(socket, &QIODevice::readyRead, this, &MyClass::readyRead);
原文地址: https://www.cveoy.top/t/topic/iBd4 著作权归作者所有。请勿转载和采集!