QT:tcpSocket 代理 报错The proxy type is invalid for this operation

作者 : admin 本文共182个字,预计阅读时间需要1分钟 发布时间: 2024-06-12 共1人阅读

Qt低版本正常通讯换用高版本后通讯报错 The proxy type is invalid for this operation

qt调用connectToHost时会检查代理情况,qt程序默认会使用代理设置会导致此问题,只要关闭代理就可以了 

#include

QNetworkProxyFactory::setUseSystemConfiguration(false); // 静态函数

本站无任何商业行为
个人在线分享 » QT:tcpSocket 代理 报错The proxy type is invalid for this operation
E-->