From e7076ed7de796bf844e466b0e766da4884a5258b Mon Sep 17 00:00:00 2001 From: feiyangqingyun Date: Fri, 10 Dec 2021 20:32:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B6=85=E7=BA=A7=E6=9B=B2?= =?UTF-8?q?=E7=BA=BF=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third/qcustomplotdemo/frmexample2/frminteraction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();