我有以下内容:
void MainWindow::uploadText(){
QUrl parameters;
parameters.addQueryItem("OrgName","MM");
parameters.addQueryItem("Type","Article");
parameters.addQueryItem("ExpiraryDate","12/2/2012");
QNetworkRequest request(QUrl("http://xxxxxxxxxx"));
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
QNetworkAccessManager *manager= new QNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(sendReportToServerReply(QNetworkReply*)));
QNetworkReply *reply = manager->post(request,parameters.encodedQuery());
}
我必须在哪个级别处理代码中的 Json 解析和序列化格式?