完成数据变化绘图
This commit is contained in:
33
customthread.h
Normal file
33
customthread.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef CUSTOMTIMETHREAD_H
|
||||
#define CUSTOMTIMETHREAD_H
|
||||
|
||||
#include <QThread>
|
||||
#include "global.h"
|
||||
|
||||
class CustomThread : public QThread {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CustomThread(QObject *parent = nullptr);
|
||||
|
||||
void setValue(QVector<int> vector, QString string);
|
||||
|
||||
void setIsTime(bool IsTime);
|
||||
|
||||
signals:
|
||||
|
||||
void setProgressBar(int bytesRead);
|
||||
|
||||
void setPlotView(int jd, bool isNum, bool isTime);
|
||||
|
||||
void setWidget();
|
||||
|
||||
protected:
|
||||
void run() override;
|
||||
|
||||
private:
|
||||
QVector<int> jd;
|
||||
QString dataName;
|
||||
bool isTime;
|
||||
};
|
||||
|
||||
#endif // CUSTOMTIMETHREAD_H
|
Reference in New Issue
Block a user