#ifndef AUDIOWAVEFORM_H #define AUDIOWAVEFORM_H #include #include #include "thirdparty/qcustomplot/qcustomplot.h" class AudioWaveform : public QQuickPaintedItem { Q_OBJECT public: AudioWaveform(QQuickItem* parent = nullptr); ~AudioWaveform(); virtual void paint(QPainter *painter); void refresh(); Q_INVOKABLE void paintWaveForm(); void setData(QVector xValue, QVector yValue); private: QCustomPlot* m_pCustomPlot; QCPGraph* m_pAudioWaveformGraph; public slots: }; #endif // AUDIOWAVEFORM_H