#ifndef TERMINALINFO_H #define TERMINALINFO_H #include #include //数据模型类 #include "TableHeaderView.h" #include #include #include #include "global.h" QT_CHARTS_BEGIN_NAMESPACE class QChartView; class QChart; QT_CHARTS_END_NAMESPACE namespace Ui { class CTerminalInfo; } class CTerminalInfo : public QWidget { Q_OBJECT public: explicit CTerminalInfo(QWidget *parent = nullptr); ~CTerminalInfo(); private slots: //网络请求数据响应 void slotNetMgr(QString sAddr,const QVariant& msg); void on_pushButton_Update_clicked(); void on_pushButtonCopy_clicked(); void on_pushButton_export_clicked(); void on_pushButton_import_clicked(); private: Ui::CTerminalInfo *ui; QGridLayout *m_gridLayout; QList m_charts; QLabel * m_centerLabel1; QLabel * m_centerLabel2; QLabel * m_centerLabel3; TableHeaderView *myHeader; QStandardItemModel *model; QString headerStr ; QString m_strTitle; QChart * bulidPieChart(int percent,QString& strTitle); void resizeEvent(QResizeEvent *event); void UpdateChart(double&,double&,double&,double&,QString&); }; #endif // TERMINALINFO_H