QT error: member access into incomplete type 'QTcpSocket'

 

 

mainwindow.cpp:77:44: error: member access into incomplete type 'QTcpSocket'
qtcpserver.h:55:7: note: forward declaration of 'QTcpSocket'

 

添加:#include <QtNetwork>

posted @ 2022-06-28 21:10  txwtech  阅读(389)  评论(0编辑  收藏  举报