This commit is contained in:
Chenwenxuan
2024-03-06 14:54:30 +08:00
commit edac2715f0
1525 changed files with 809982 additions and 0 deletions

33
dmplot/ui/plotwidget.h Normal file
View File

@@ -0,0 +1,33 @@
#ifndef POLTWIDGET_H
#define POLTWIDGET_H
#include <QMainWindow>
#include <QTimer>
#include "qcustomplot.h"
namespace Ui {
class PlotWidget;
}
class PlotWidget : public QMainWindow
{
Q_OBJECT
public:
explicit PlotWidget(QWidget *parent = 0);
~PlotWidget();
void setupItemDemo(QCustomPlot *customPlot);
public slots:
void appentDataDisplaySlot(double yValue=0);
void setPlotDataCount(int value);
private:
Ui::PlotWidget *ui;
int n{500};
int xNum{n};
QVector<double> x, y;
};
#endif // POLTWIDGET_H