資源簡介
本示例基于QT5并以HTTP形式獲取天氣信息,能夠輸入城市名稱,獲取天氣信息后,將天氣信息進行json,將解析的結果顯示至頁面上來。

代碼片段和文件信息
#include?“widget.h“
#include?
int?main(int?argc?char?*argv[])
{
????QApplication?a(argc?argv);
????Widget?w;
????w.show();
????return?a.exec();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-12-09?23:14??weather\
?????文件?????????175??2018-08-09?17:51??weather\main.cpp
?????文件?????????389??2018-08-09?17:57??weather\weather.pro
?????文件????????3094??2018-09-01?09:59??weather\widget.cpp
?????文件?????????760??2018-08-09?20:17??weather\widget.h
?????文件????????2442??2018-08-09?21:01??weather\widget.ui
評論
共有 條評論