diff --git a/third/qcustomplotdemo/frmexample2/frminteraction.cpp b/third/qcustomplotdemo/frmexample2/frminteraction.cpp index c1e5cdb..09d008f 100644 --- a/third/qcustomplotdemo/frmexample2/frminteraction.cpp +++ b/third/qcustomplotdemo/frmexample2/frminteraction.cpp @@ -1,5 +1,6 @@ #include "frminteraction.h" #include "ui_frminteraction.h" +#include "qmenu.h" #include "qdebug.h" frmInterAction::frmInterAction(QWidget *parent) : QWidget(parent), ui(new Ui::frmInterAction) @@ -17,8 +18,7 @@ void frmInterAction::initForm() { std::srand(QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000.0); - ui->customPlot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectAxes | - QCP::iSelectLegend | QCP::iSelectPlottables | QCP::iSelectPlottablesBeyondAxisRect); + ui->customPlot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectAxes | QCP::iSelectLegend | QCP::iSelectPlottables); ui->customPlot->xAxis->setRange(-8, 8); ui->customPlot->yAxis->setRange(-5, 5); ui->customPlot->axisRect()->setupFullAxesBox();