闲情zhi

生活 创业 时评 杂文

Qt应用开发学习(7)- json数据解析

 QJsonDocument json = QJsonDocument::fromJson(netReply->readAll());
    QJsonObject ob = json.object();
    QJsonValue msg = ob.value(QString("msg"));
    QJsonValue ret = ob.value(QString("ret"));

Leave a Reply

Your email address will not be published.