Problems with showing facebook page in Qml WebView in qt5 for windows
-
The problems seems to be in openSSL. When I'm performing command openssl s_client -connect www.facebook.com:443 it ruins with error: unable to get local issuer certificate
-
To reproduse bug just open https://www.facebook.com in QML WebView 3.0
-
Ok, i found the problem and the solution for Qt 4.*.
The idea is to ignore SSL errors, you could find the example here:
http://qt-project.org/forums/viewthread/8911Now the only one question is how to implement it in Qt 5.0.1 with QWebKit 3.0
-
The solutions is really simple:
@import QtWebKit 3.0
import QtWebKit.experimental 1.0WebView {
id: webView;
url: "https://www.facebook.com";
experimental.certificateVerificationDialog: Item {
Component.onCompleted: {
model.accept();
}
}
}@ -
Thank you for sharing the solution with us!
-
No problem.
Just an addition:
It uses Experimental API, so probably in wont work on any system and any Qt5 version. I've tested it on Windows 7 and Qt 5.0.1 msvc2010 version. -
IonRod, can you post some links to the documentation about this experimental features of qml WebView?
-
For some reason suggested solution is not working for me. I am using Qt 5.4.
Is there some other workaround? -
For some reason suggested solution is not working for me. I am using Qt 5.4.
Is there some other workaround? -
Ok, I have found somewhere solution.
Basically I needed to put 2 files with .exe file:
libeay32.dll
ssleay32.dllNo need for experimental or anything, just add libraries and it works.
-
Ok, I have found somewhere solution.
Basically I needed to put 2 files with .exe file:
libeay32.dll
ssleay32.dllNo need for experimental or anything, just add libraries and it works.
-
I put these files next to my executable but I still get a blank page (Qt 5.4.1).
Are you sure that you didn't do something else? -
I put these files next to my executable but I still get a blank page (Qt 5.4.1).
Are you sure that you didn't do something else? -
@julienw Yes, thats all. I downloaded OpenSSL and extracted those DLL's from installation directory.
Maybe you forgot some Qt DLL's to put along with your application.