CodeLibrary/05_QtCreator_Cplus_TCPServer_20240423/thread.h
JRNitre b01d9fbda0 追加了好多 Cplus 项目...
删除了一些不明所以的 Cplus 项目
2024-06-15 00:06:15 +08:00

32 lines
424 B
C++

#ifndef THREAD_H
#define THREAD_H
#include <QObject>
#include <QThread>
#include <QTcpSocket>
class Thread : public QObject
{
Q_OBJECT
public:
explicit Thread(QTcpSocket *s);
void myTimeout();
void setFlag(bool flag);
signals:
void sendToWidget(QByteArray b);
void mySignal();
public slots:
void clientInfoSlots();
private:
QTcpSocket *socket;
bool isStop;
};
#endif // THREAD_H