0
4

1 回答 1

1

check declaration: if you wrote QTcpSocket socket; you declare a object not a pointer. In this case you can t construct it with new.

You should declare QTcpSocket* socket;

于 2012-05-03T08:46:47.587 回答