#ifndef DATABASEEVENTTHREAD_H #define DATABASEEVENTTHREAD_H #include #include #include #include #include #include class DatabaseEventThread : public QThread { Q_OBJECT public: explicit DatabaseEventThread(QObject *parent = nullptr); void run(); void stop(); void appendSql(QString sql); signals: void dbdata_log(QString log); public slots: private: int hour; bool keep; QSqlDatabase db; QStringList sqlList; }; #endif // DATABASEEVENTTHREAD_H