QtcpSocket提示找不到文件
在使用QtcpSocket和QTcpServer的时候使用
#include < QTcpServer>
#include < QTcpSocket>
却提示NO fsuch file or directory
原因:需要在文件的.pro中添加network模块
如下即可:

这样就没有问题了

在使用QtcpSocket和QTcpServer的时候使用
#include < QTcpServer>
#include < QTcpSocket>
却提示NO fsuch file or directory
原因:需要在文件的.pro中添加network模块
如下即可:

这样就没有问题了
