#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QScriptEngine>
#include <QtScript>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonDocument>
#include <QScriptValue>
#include <QVariantMap>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QNetworkAccessManager *manager;
void analyseJson();
QByteArray weather;
private slots:
void GetWebJsonData(QNetworkReply *);
};
#endif // MAINWINDOW_H
</pre><pre name="code" class="cpp">
<pre name="code" class="cpp">#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::Ma