43 #include "../disp_global.h"
57 #include <QLineSeries>
58 #include <QSharedPointer>
83 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
92 typedef QSharedPointer<LinePlot>
SPtr;
101 LinePlot(QWidget *parent = Q_NULLPTR);
112 const QString& title =
"",
113 QWidget *parent = Q_NULLPTR);
125 const QVector<double>& y,
126 const QString& title =
"",
127 QWidget *parent = Q_NULLPTR);
141 void setTitle(
const QString &p_sTitle);
149 void setXLabel(
const QString &p_sXLabel);
157 void setYLabel(
const QString &p_sYLabel);
165 void updateData(
const QVector<double>& y);
174 void updateData(
const QVector<double>& x,
175 const QVector<double>& y);
191 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
192 QtCharts::QLineSeries* m_pLineSeries;
193 QtCharts::QChart* m_pChart;
195 QLineSeries* m_pLineSeries;