#ifndef THREAD_H #define THREAD_H #include #include #include 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