Qt之TCP编程中 socketDescriptor类型必须为qintptr!!!
QTcpServer之虚函数必须为:
protected:
void incomingConnection(qintptr socketDescriptor);
不能为:
protected:
void incomingConnection(int socketDescriptor);
QTcpServer之虚函数必须为:
protected:
void incomingConnection(qintptr socketDescriptor);
不能为:
protected:
void incomingConnection(int socketDescriptor);