默认Qt 是不支持https的

下载Win32 OpenSSL v1.0.2a Light

 安装

将libeay32.dll和ssleay32.dll拷贝到qt的动态链接库即Qt5Core.dll所在bin目录下


设置request的https即可

    QSslConfiguration conf = request.sslConfiguration();    
    conf.setPeerVerifyMode(QSslSocket::VerifyNone);
    conf.setProtocol(QSsl::TlsV1SslV3);
    request.setSslConfiguration(conf);