virtual qint64 QAbstractSocket::readData(char*, qint64)’是保护的
而
qint64 QAbstractSocket::readData ( char * data, qint64 maxSize ) [virtual protected]
Reimplemented from
QIODevice::readData().
qint64 QIODevice::readData ( char * data, qint64 maxSize ) [pure virtual protected] Reads up to
maxSize bytes from the device into
data, and returns the number of bytes read or -1 if an error occurred.
If there are no bytes to be read and there can never be more bytes available (examples include socket closed, pipe closed, sub-process finished), this function returns -1.
This function is called by
QIODevice. Reimplement this function when creating a subclass of
QIODevice.
我已经建立一个套接字了,tcpClient =new QTcpSocket(this);
为什么不能
tcpClient->
readData()
???