Qt支持SSL

Qt Webkit加载百度网址异常:

qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method qt.network.ssl: QSslSocket: cannot call unresolved function SSL_CTX_new qt.network.ssl: QSslSocket: cannot call unresolved function SSL_library_init qt.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error


Qt默认不支持SSL,所以我们要通过以下操作让Qt支持SSL:
1.安装openssl;
2.把libeay32.dll和ssleay32.dll拷贝到Qt目录下存放Qt5Network.dll的目录下
3.重新编辑程序,就可以成功加载HTTPS网页啦

你可能感兴趣的:(Qt)