Hi,
I have installed the OpenSSL dll.
When I try to display some page in a QWebView, nothing happen:
https://www.labanquepostale.fr/index.html
https://www.paypal.com/
Still, it works with other pages like:
https://www.secure.bnpparibas.net
https://www.creditmutuel.fr/groupe/fr/index.html
QWebView *webview=new QWebView();
webview
->load
(QUrl("https://www.labanquepostale.fr/index.html"));
webview->show();
QWebView *webview=new QWebView();
webview->load(QUrl("https://www.labanquepostale.fr/index.html"));
webview->show();
To copy to clipboard, switch view to plain text mode
I even tried to derivate QWebView to ignore SSL errors, but none pops and I still can't see my page:
class QWebViewExt : public QWebView
{
Q_OBJECT // must include this if you use Qt signals/slots
public:
QWebViewExt();
private slots:
void sslErrorHandler( QNetworkReply *reply, const QList<QSslError> &errors );
};
class QWebViewExt : public QWebView
{
Q_OBJECT // must include this if you use Qt signals/slots
public:
QWebViewExt();
private slots:
void sslErrorHandler( QNetworkReply *reply, const QList<QSslError> &errors );
};
To copy to clipboard, switch view to plain text mode
QWebViewExt::QWebViewExt()
{
connect( this->page()->networkAccessManager(),
SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError> & )),
this,
SLOT(sslErrorHandler(QNetworkReply*, const QList<QSslError> & )));
}
void QWebViewExt::sslErrorHandler( QNetworkReply *reply, const QList<QSslError> &errors )
{
qDebug() << "sslErrorHandler:";
foreach (QSslError err, errors)
qDebug() << "ssl error: " << err;
reply->ignoreSslErrors();
}
QWebViewExt::QWebViewExt()
{
connect( this->page()->networkAccessManager(),
SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError> & )),
this,
SLOT(sslErrorHandler(QNetworkReply*, const QList<QSslError> & )));
}
void QWebViewExt::sslErrorHandler( QNetworkReply *reply, const QList<QSslError> &errors )
{
qDebug() << "sslErrorHandler:";
foreach (QSslError err, errors)
qDebug() << "ssl error: " << err;
reply->ignoreSslErrors();
}
To copy to clipboard, switch view to plain text mode
What's the problem ?
Using the "webkit/FancyBrowser" example from the SDK I can see the loading block at 10%. But I have no problem seeing the page in Chrome.
Bookmarks