其他分享
首页 > 其他分享> > QNetworkAccessManager

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()));

 

 

 

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

标签:SLOT,httpRequest,QNetworkAccessManager,SIGNAL,networkManagerObj,QNetworkReply
来源: https://www.cnblogs.com/herd/p/15940161.html