connect(socket, &QIODevice::connected, this, &MyClass::connected); connect(socket, &QIODevice::disconnected, this, &MyClass::disconnected); connect(socket, &QIODevice::readyRead, this, &MyClass::readyRead);

connectsocket SIGNALconnected this SLOTconnected; connectsocket SIGNALdisconnected this SLOTdisconnected; connectsocket SIGNALreadyRead this SLOTreadyRead;写成lambo形式

原文地址: https://www.cveoy.top/t/topic/iBd4 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录