Important: Please read the Qt Code of Conduct -


  • Hello,

    Can anyone help me with my issue? I'm trying to get html page via https protocol, but always got error "SSL handshake failed".
    I've connected SIGNAL sslErrors with SLOT and add printing debug but this SLOT don't get in.
    Same code works fine under Windows and Linux. Qt version is 4.8.1 & 4.8.2.
    I don't got message "got ssl error "
    @@void Main::req() {
    manager = new QNetworkAccessManager(this);
    QNetworkRequest request;
    request.setSslConfiguration(QSslConfiguration::defaultConfiguration ());
    connect(manager, SIGNAL(sslErrors(QNetworkReply*,QList<QSslError>)), this, SLOT(sslErrorHandler(QNetworkReply*, const QList<QSslError> & )));
    connect(manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(gotPage(QNetworkReply*)));

    void Main::sslErrorHandler(QNetworkReply* qnr, const QList<QSslError> & errlist) {
    qDebug() << "got ssl errors";

    [edit, code tags added, koahnig]

Log in to reply