新增超级曲线图表
parent
5138d9366b
commit
e7076ed7de
|
@ -1,5 +1,6 @@
|
||||||
#include "frminteraction.h"
|
#include "frminteraction.h"
|
||||||
#include "ui_frminteraction.h"
|
#include "ui_frminteraction.h"
|
||||||
|
#include "qmenu.h"
|
||||||
#include "qdebug.h"
|
#include "qdebug.h"
|
||||||
|
|
||||||
frmInterAction::frmInterAction(QWidget *parent) : QWidget(parent), ui(new Ui::frmInterAction)
|
frmInterAction::frmInterAction(QWidget *parent) : QWidget(parent), ui(new Ui::frmInterAction)
|
||||||
|
@ -17,8 +18,7 @@ void frmInterAction::initForm()
|
||||||
{
|
{
|
||||||
std::srand(QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000.0);
|
std::srand(QDateTime::currentDateTime().toMSecsSinceEpoch() / 1000.0);
|
||||||
|
|
||||||
ui->customPlot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectAxes |
|
ui->customPlot->setInteractions(QCP::iRangeDrag | QCP::iRangeZoom | QCP::iSelectAxes | QCP::iSelectLegend | QCP::iSelectPlottables);
|
||||||
QCP::iSelectLegend | QCP::iSelectPlottables | QCP::iSelectPlottablesBeyondAxisRect);
|
|
||||||
ui->customPlot->xAxis->setRange(-8, 8);
|
ui->customPlot->xAxis->setRange(-8, 8);
|
||||||
ui->customPlot->yAxis->setRange(-5, 5);
|
ui->customPlot->yAxis->setRange(-5, 5);
|
||||||
ui->customPlot->axisRect()->setupFullAxesBox();
|
ui->customPlot->axisRect()->setupFullAxesBox();
|
||||||
|
|
Loading…
Reference in New Issue