init
This commit is contained in:
33
dmplot/ui/plotwidget.h
Normal file
33
dmplot/ui/plotwidget.h
Normal 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
|
||||
Reference in New Issue
Block a user