Home > Back-end >  Qt QNetworkAccessManager send out request!!!!!! urgent
Qt QNetworkAccessManager send out request!!!!!! urgent

Time:01-17

PnetworkAccess=new QNetworkAccessManager ();
QString STR="http://adm.test.cbct.cn/admin/time/";
QNetworkRequest request (STR);
QNetworkReply * r=pnetworkAccess - & gt; Get (request);
QDebug () & lt; <"99999999999999999999999";
The connect (r, & amp; QNetworkReply: : finished, this, [r] () {
QByteArray rawData=https://bbs.csdn.net/topics/r-> readAll ();
QDebug (" ApiWrapperPrivate: : GetServerTime: % s ", rawData. The data ());
R - & gt; DeleteLater ();
});

Environment: VS2019 + QT5.10.1 was built under the VS project


But under the Qt creator can be normal return data, under the VS not


I have tried various methods, and even reshipment system

CodePudding user response:

Whether permission problems with administrator privileges to open vs run,

CodePudding user response:

I will try to

reference 1st floor ningto dot com response:
permission problems, open the vs run with administrator privileges,
  • Related