#ifndef WEATHER_H #define WEATHER_H #include #include #include #include #include #include #include "ui_climate.h" class climate; class weather : public QMainWindow { Q_OBJECT public: explicit weather(Ui::climate * p); ~weather(); /*城市的基本信息*/ QString city="", cityID="", swn="", sw0="", icon_path0=""; /*建立http连接*/ void http_sent(); Ui::climate* exUI; private: QNetworkAccessManager *manager; /*获取天气信息*/ void getWeather(); private slots: /*http数据返回处理函数*/ void replyFinished(QNetworkReply *reply); }; #endif // WEATHER_H