QNetworkAccessManager

QNetworkAccessManager

networkManagerObj = new QNetworkAccessManager(this);
connect(networkManagerObj, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));

 

 

QUrl url(strUrl);
QNetworkRequest m_httpRequest(url);

uploadFileReply = networkManagerObj->get(m_httpRequest);
connect(uploadFileReply, SIGNAL(finished()), this, SLOT(slotHttpUploadFinished()));

 

 

 

###################

posted @ 2022-02-26 18:55  西北逍遥  阅读(170)  评论(0编辑  收藏  举报