Files
newspark110/dmplot/ui/dmplot.cpp
Chenwenxuan edac2715f0 init
2024-03-06 14:54:30 +08:00

19 lines
429 B
C++

#include "dmplot.h"
DMPlot::DMPlot(const QString& title,QWidget* parent)
:QDockWidget(title,parent)
,plotWidget(new PlotWidget(this))
{
auto frame = new QFrame(this);
auto layout = new QVBoxLayout;
frame->setLayout(layout);
layout->setMargin(0);
layout->addWidget(plotWidget);
setWidget(frame);
connect(this,&DMPlot::appendValuetoPlotSGL,plotWidget,&PlotWidget::appentDataDisplaySlot);
}