#QCustomPlot 设置曲线拖动方式
-
QCustomPlot官网
qcustomplot官网 -
曲线拖动设置
ui->plot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom);
(1)设置曲线水平方向拖动
ui->plot->axisRect()->setRangeDrag(Qt::Horizontal);
(2)设置曲线竖直方向拖动
ui->plot->axisRect()->setRangeDrag(Qt::Vertical);