我在Qt5 QML QWebKit 3.0中显示Qt5 QML QWebKit 3.0时遇到了问题。
问题在于SSL证书。有一个Qt 4.*的解决方案,但是我需要在Qt 5.0.1中实现它,在那里所有的API都已经改变了。
Qt 4.*的示例解决方案可以在这里找到,链接
发布于 2013-02-14 22:50:58
以下是解决方案,如何在Qt5中忽略QML中的SSL错误。它帮助我展示了facebook页面。我要用实验API。该解决方案对于Windows7.64位中的QT5.0.1 msvc2010版本是正确的。
import QtWebKit 3.0
import QtWebKit.experimental 1.0
WebView {
id: webView;
url: "https://www.facebook.com";
experimental.certificateVerificationDialog: Item {
Component.onCompleted: {
model.accept();
}
}
}发布于 2014-03-03 22:43:41
我无法用QT5.1和MinGW4.8来解决这个问题。
最后,我安装了新的Qt5.2版本,其中包含了更有表现力的错误消息:
QSslSocket: cannot call unresolved function SSLv23_client_method
QSslSocket: cannot call unresolved function SSL_CTX_new
QSslSocket: cannot call unresolved function SSL_library_init
QSslSocket: cannot call unresolved function ERR_get_error
QSslSocket: cannot call unresolved function ERR_get_error因此,有了这些新信息,解决方案就是安装Win32OpenSSL:http://slproweb.com/products/Win32OpenSSL.html。
https://stackoverflow.com/questions/14865033
复制相似问题