Files
M1300LogTool/InteractiveChartView.h
2024-01-22 18:45:09 +09:00

20 lines
333 B
C++

#ifndef INTERACTIVECHARTVIEW_H
#define INTERACTIVECHARTVIEW_H
#include <QChartView>
class InteractiveChartView : public QtCharts::QChartView
{
Q_OBJECT
public:
using QChartView::QChartView;
protected:
void wheelEvent(QWheelEvent* event) override;
private:
qreal factor = 1.0;
};
#endif // INTERACTIVECHARTVIEW_H