class SocketContainer {
private:
QTcpSocket* m_sockets[10];
public:
SocketContainer() {
for(int i = 0; i < 10; i++)
connect(m_sockets[i], SIGNAL(readyRead()), this, SLOT(onNewData()));
}
private slots:
onNewData();
}
我怎么知道发出readyRead
了哪个套接字onNewData()
?