PDA

View Full Version : QWebview https link loading issue



AXA
28th September 2020, 15:17
I am completely new to Qt and using Qt 5.5.1 version. I need to load an https link in my QWebview widget. But it is not loading. I tried with a different 'https' link address. Some will load, but some others will fail to get load. I googled the issue and found that it is due to an SSL error. If then how I am supposed to rectify this using OpenSSL. I am using Ubuntu 16. Can someone share any sample codes in Qt5.5.1? If there is any version issue for SSL error to be rectified, Can someone suggest methods for upgrading?

ChrisW67
2nd October 2020, 23:09
I am completely new to Qt and using Qt 5.5.1 version. I need to load an https link in my QWebview widget. But it is not loading. I tried with a different 'https' link address. Some will load, but some others will fail to get load. I googled the issue and found that it is due to an SSL error. If then how I am supposed to rectify this using OpenSSL. I am using Ubuntu 16. Can someone share any sample codes in Qt5.5.1? If there is any version issue for SSL error to be rectified, Can someone suggest methods for upgrading?

How about you share anything at all about the actual error, the code you are running, the site(s) involved... could be certificate problems, name resolution problems, missing libraries, bad code, poor assumptions...
Start with a small self-contained program that demonstrates the problem, the site and the errors delivered by sslErrors(const QList<QSslError> &errors).

AXA
24th November 2020, 04:27
How about you share anything at all about the actual error, the code you are running, the site(s) involved... could be certificate problems, name resolution problems, missing libraries, bad code, poor assumptions...
Start with a small self-contained program that demonstrates the problem, the site and the errors delivered by sslErrors(const QList<QSslError> &errors).

i got the issue solved by trying with networkAccessManager() and sslErrorHandler for rectifying ssl error.