Qt5.4 webview 不能打开网址

时间:2021-03-07 23:13:19

在使用Qwebview浏览器时不能打开网络地址,并报下面的错误

Starting E:\WorkSpace\QtWorkSpace\build-webTest-Desktop_Qt_5_4_2_MSVC2013_32bit-Debug\debug\webTest.exe...
Qt: Untested Windows version 10.0 detected!
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.network.ssl: QSslSocket: cannot call unresolved function ERR_get_error

 

造成整个问题的原因是Qt creator 3.3 和qt5.4的库版本不同造成的

需要复制2个库文件 libeay32.dll 和 ssleay32.dll 

 D:\Qt\Qt5.4.2\Tools\QtCreator\bin ==> D:\Qt\Qt5.4.2\5.4\msvc2013\bin