新增超级曲线图表
This commit is contained in:
36
third/qcustomplotdemo/frmcustom/frmmultiaxes.h
Normal file
36
third/qcustomplotdemo/frmcustom/frmmultiaxes.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef FRMMULTIAXES_H
|
||||
#define FRMMULTIAXES_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "qcustomplot.h"
|
||||
|
||||
namespace Ui {
|
||||
class frmMultiAxes;
|
||||
}
|
||||
|
||||
class frmMultiAxes : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit frmMultiAxes(QWidget *parent = 0);
|
||||
~frmMultiAxes();
|
||||
|
||||
private:
|
||||
Ui::frmMultiAxes *ui;
|
||||
int count;
|
||||
|
||||
private slots:
|
||||
//初始化界面数据
|
||||
void initForm();
|
||||
//用户按下区域改变
|
||||
void selectionChangedByUser();
|
||||
//初始化图表控件
|
||||
void initPlot(QCustomPlot *customPlot, const QCPAxis::AxisType &type, int count);
|
||||
//加载图表控件
|
||||
void loadPlot(QCustomPlot *customPlot, const QCPAxis::AxisType &type, int count);
|
||||
//加载数据到图表控件
|
||||
void loadData(QCustomPlot *customPlot, int index);
|
||||
};
|
||||
|
||||
#endif // FRMMULTIAXES_H
|
||||
Reference in New Issue
Block a user