QT:tcpSocket 代理 报错The proxy type is invalid for this operation
Qt低版本正常通讯换用高版本后通讯报错 The proxy type is invalid for this operation
qt调用connectToHost时会检查代理情况,qt程序默认会使用代理设置会导致此问题,只要关闭代理就可以了
#include
QNetworkProxyFactory::setUseSystemConfiguration(false); // 静态函数