因此截至Qt 5,QHttp is deprecated,我们都应该use QNetworkAccessManager now。精细。但是,如何从我的多宿主机器发出请求(HTTP或其他),而不会感觉我正在玩轮盘赌? 如果there is no way,那么什么是解决方法?对于我现在的具体情况,我只需要通过HTTP下载文件。但是真的没有办法用QtNetwork以通用的方式做到这一点吗?
我创建了一个线程包含一个QTcpServer它接受任何传入连接: void Service::run() //Service class is a subclass of QThread
{
server->listen(QHostAddress::LocalHost, ServicePortNo);
// server is a private member of Serv