class WebView : public QWebView{ Q_OBJECTpublic: WebView(QWidget *parent = 0);...private slots: void handleSslErrors(QNetworkReply* reply, const QList<QSslError> &errors);};
void WebView::handleSslErrors(QNetworkReply* reply, const QList<QSslError> &errors){ qDebug() << "handleSslErrors: "; foreach (QSslError e, errors) { qDebug() << "ssl error: " << e; } reply->ignoreSslErrors();}
C++ (Qt)while(!asleep()) sheep++;