#ifndef MAIN_H #define MAIN_H #include #include #include #include class Request : public QObject { public slots: void showReply() { QJsonDocument jsonResponse = QJsonDocument::fromJson(doc.toUtf8()); QJsonObject jsonObject = jsonResponse.object(); QJsonArray jsonArray = jsonObject["response"].toArray(); int count = jsonArray.count(); for (int i=0; i