遍历QjsonObject方式
方式一
QJsonObject::const_iterator it = l_obj.constBegin();
QJsonObject::const\_iterator end = l\_obj.constEnd();
while(it != end)
{
it.key();
it.value();
it++;
}
方式二
QVariantMap abc = l_obj.toVariantMap();
变成遍历QVariantMap就ok
手机扫一扫
移动阅读更方便
你可能感兴趣的文章