📜  qt rest api - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:43.632000             🧑  作者: Mango

代码示例9
QVariantMap feed;
feed.insert(“api_key”,WRKey);
feed.insert(“field1”,QVariant(tval).toString());
feed.insert(“field2”,QVariant(hval).toString());
feed.insert(“field3”,Qvariant(pval).toString());
QByteArray payload=QJsonDocument::fromVariant(feed).toJson();