OK PROBLEM SOLVED !
This was a problem of ssl connection.
My guess : facebook gets its ressources from an address in facebook.com domain where twitter gets it from twimg.com domain. And there must be some problems in certificates specific to windows XP with this domain (authority not trusted i think).
Workaround:
void
MyQWebview
::load( const QUrl & url
){
connect( this->page()->networkAccessManager(), SIGNAL( sslErrors( QNetworkReply*, const QList<QSslError> & ) ), this, SLOT( sslErrorHandler( QNetworkReply*, const QList<QSslError> & ) ) );
this->QWebView::load( url );
}
void
MyQWebView::sslErrorHandler( QNetworkReply *reply, const QList<QSslError> &errors )
{
reply->ignoreSslErrors( errors );
}
void
MyQWebview::load( const QUrl & url )
{
connect( this->page()->networkAccessManager(), SIGNAL( sslErrors( QNetworkReply*, const QList<QSslError> & ) ), this, SLOT( sslErrorHandler( QNetworkReply*, const QList<QSslError> & ) ) );
this->QWebView::load( url );
}
void
MyQWebView::sslErrorHandler( QNetworkReply *reply, const QList<QSslError> &errors )
{
reply->ignoreSslErrors( errors );
}
To copy to clipboard, switch view to plain text mode
This allows the webview to load the page even if there is some ssl handshake errors
Thanks Wysota for ur help
Regards,
Márwyn
Bookmarks