use only one thread

This commit is contained in:
2024-05-06 06:23:52 +02:00
parent f741fb96f9
commit bc064c38c6
2 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#ifndef WORKER_THREAD_H_INCLUDED
#define WORKER_THREAD_H_INCLUDED
#include <QThread>
class WorkerThread : public QThread {
Q_OBJECT
public:
explicit WorkerThread(QObject *parent = nullptr);
~WorkerThread();
private:
void run() override;
bool m_quit = false;
};
#endif // WORKER_THREAD_H_INCLUDED