Qt 5 can't lauch https adresses

  • I'm using qtwebengine from Qt 5.8.0 on my linux machine and i want to develop a web browser . i read the examples on my version and i successed to launch it using http on localhost but when i set a https on localhost i get a blank webpage i tried :

    bool WebPage::certificateError(const QWebEngineCertificateError &error)

    But i don't know how to use it , and i get this error :

    [12988:13003:0428/122259:ERROR:cert_verify_proc_nss.cc(942)] CERT_PKIXVerifyCert for localhost failed err=-8179

    and i want to ignore certificate error

    sorry i'm noobs in Qt ! anyone can help me please

  • I too am having a similar issue with my Qt 5.7.1. The Qt web browser will show web pages with 'http' but not 'https'. I already received confirmation from Qt that the browser supports these secure protocols: SSL 2.0/3.0 and TLS 1.1/1.2.

  • thank you for your answer , but i change from C++ to QML and i work :

     WebEngineView {
            id: webView
            width: 520
            height: 520
            url: "https://localhost:8443/"
            visible: false
            anchors.fill: parent
            anchors.margins: 10
    onFeaturePermissionRequested: { console.log("request")
        grantFeaturePermission(securityOrigin, feature, true);

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.