1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/demo/VegeTablesPrice/mainwindow.h

49 lines
922 B
C
Raw Normal View History

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QListWidget>
2017-11-20 20:08:21 +08:00
#include "qqtcore.h"
2017-11-22 19:40:43 +08:00
#include "qqtwebaccessmanager.h"
2017-11-20 20:08:21 +08:00
2017-11-21 14:04:20 +08:00
#include <QtCharts/QChartView>
#include <QtCharts/QBarSeries>
#include <QtCharts/QBarSet>
#include <QtCharts/QLegend>
#include <QtCharts/QBarCategoryAxis>
QT_CHARTS_USE_NAMESPACE
2017-11-20 20:08:21 +08:00
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
2017-11-20 20:08:21 +08:00
explicit MainWindow ( QWidget* parent = 0 );
~MainWindow();
private slots:
2017-11-20 20:08:21 +08:00
void currentItemChanged ( QListWidgetItem*, QListWidgetItem* );
void replyFinished ( QNetworkReply* reply );
2017-11-21 14:04:20 +08:00
void seeplot();
void seereport();
private:
Ui::MainWindow* ui;
2017-11-22 19:22:53 +08:00
QQtWebAccessManager* m_client;
2017-11-20 20:08:21 +08:00
QMap<QString, QString> m_mapVege;
2017-11-21 14:04:20 +08:00
QBarSet* m_barSet0;
QBarSet* m_barSet1;
QBarSet* m_barSet2;
QBarSet* m_barSet3;
QBarSet* m_barSet4;
};
#endif // MAINWINDOW_H