#ifndef LOGTHREAD_H #define LOGTHREAD_H #include #include #include #include #include class LogThread : public QThread { Q_OBJECT public: explicit LogThread(QObject *parent = nullptr); void appendData(QString data); void run(); void stop(); signals: public slots: private: QFile *file; QStringList dataList; int day; bool keep; }; #endif // LOGTHREAD_H