12345678910111213141516171819202122232425262728 |
- #ifndef LOGTHREAD_H
- #define LOGTHREAD_H
- #include <QThread>
- #include <QStringList>
- #include <QDate>
- #include <QDir>
- #include <QFile>
- 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
|