HX_CoalFlowDetect/view/coalstatisticschartwidget.h

40 lines
881 B
C
Raw Normal View History

2024-11-01 17:40:37 +08:00
#ifndef COALSTATISTICSCHARTWIDGET_H
#define COALSTATISTICSCHARTWIDGET_H
#include <QWidget>
#include <QtCharts>
QT_CHARTS_USE_NAMESPACE
namespace Ui {
class CoalStatisticsChartWidget;
}
class CoalStatisticsChartWidget : public QWidget {
Q_OBJECT
public:
explicit CoalStatisticsChartWidget(QWidget* parent = nullptr);
~CoalStatisticsChartWidget();
private:
/**
* @brief initCoalStatisticsBarChart
*/
void initCoalStatisticsBarChart();
2024-11-04 18:11:55 +08:00
/**
* @brief getCoalStatisInfoByHttpRequest通过Http请求获取煤量统计信息
*/
void getCoalStatisInfoByHttpRequest(const QString& startTime, const QString& endTime);
2024-11-01 17:40:37 +08:00
private:
Ui::CoalStatisticsChartWidget* ui;
QChart* m_chart;
QChartView* m_chartView;
QBarSeries* m_series;
QTimer* m_timer;
};
#endif // COALSTATISTICSCHARTWIDGET_H