Page non chargée sur Windows/Qt 4.8/MingW
Bonjour,
J'ai installé les dll OpenSSL.
Quand j'essaye d'afficher certaines page SSLdans un QWebView, rien ne se passe:
https://www.labanquepostale.fr/index.html
https://www.paypal.com/
Pourtant ca marche d'autres comme
https://www.secure.bnpparibas.net
https://www.creditmutuel.fr/groupe/fr/index.html
Code:
1 2 3
| QWebView *webview=new QWebView();
webview->load(QUrl("https://www.labanquepostale.fr/index.html"));
webview->show(); |
J'ai tenté également d'ignorer les erreurs SSL en dérivant QWebView, mais aucune erreur ne se manifeste et le resultat est le même:
Code:
1 2 3 4 5 6 7 8
| 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 );
}; |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| 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();
} |
Par contre ca semble marcher avec QWebView sur Mac OS...
D'ou vient le problème ?
L'exemple "webkit/FancyBrowser" du SDK montre que le chargement bloque à 10%. Par contre dans Chrome aucun pb pour afficher la page.