Problems with showing facebook page in Qml WebView in qt5 for windows
-
wrote on 12 Feb 2013, 16:50 last edited by
Im trying to show facebook page in my Qt5 WebView using qml. On MacOs everything is fine but on Windows I've got a problem: "SSL handshake failed" I've installed openSSL from 0.9.8y to 1.0.1e but still got a problem. Also I've tried Qt versions: 5.0.0 and 5.0.1 (mingw and visual studio builds)
I cannot use 4.8.* and older Qt version due to some reason.
PS. Sorry for my bad english.
-
wrote on 12 Feb 2013, 18:37 last edited by
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
-
wrote on 13 Feb 2013, 12:53 last edited by
To reproduse bug just open https://www.facebook.com in QML WebView 3.0
-
wrote on 13 Feb 2013, 23:12 last edited by
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
-
wrote on 14 Feb 2013, 06:26 last edited by
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();
}
}
}@ -
wrote on 14 Feb 2013, 13:39 last edited by
Thank you for sharing the solution with us!
-
wrote on 14 Feb 2013, 22:55 last edited by
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. -
wrote on 13 Apr 2013, 19:00 last edited by
IonRod, can you post some links to the documentation about this experimental features of qml WebView?
-
wrote on 14 Dec 2014, 21:16 last edited by
For some reason suggested solution is not working for me. I am using Qt 5.4.
Is there some other workaround? -
wrote on 14 Dec 2014, 21:16 last edited by
For some reason suggested solution is not working for me. I am using Qt 5.4.
Is there some other workaround? -
wrote on 14 Dec 2014, 21:56 last edited by
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.
-
wrote on 14 Dec 2014, 21:56 last edited by
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.
-
wrote on 2 Mar 2015, 10:09 last edited by
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? -
wrote on 2 Mar 2015, 10:09 last edited by
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?