笔记
This commit is contained in:
23
threadclock.h
Normal file
23
threadclock.h
Normal file
@ -0,0 +1,23 @@
|
||||
#ifndef THREADCLOCK_H
|
||||
#define THREADCLOCK_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
|
||||
class ThreadClock : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ThreadClock(QObject *parent = nullptr);
|
||||
|
||||
|
||||
QString name() const;
|
||||
void setName(const QString &newName);
|
||||
|
||||
private:
|
||||
QString m_name;
|
||||
protected:
|
||||
void run() override;
|
||||
};
|
||||
|
||||
#endif // THREADCLOCK_H
|
||||
Reference in New Issue
Block a user