qt simple tcp communication with ui projects
问题 I want to create a simple Tcp Communication project but I get some problems and I dont know how to solve that problem. When I try to find solution all people tell add this code (QT += network)on .pro file but in ui projects I dont have any pro file so I dont know the find the solution. //commu.h #ifndef COMMU_H #define COMMU_H #include <QtWidgets/QMainWindow> #include "ui_commu.h" #include <QtNetwork/QTcpSocket> #include <QObject> #include <QString> class commu : public QMainWindow { Q_OBJECT