Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Qt 5 can't lauch https adresses
Forum Update on Monday, May 27th 2025

Qt 5 can't lauch https adresses

Scheduled Pinned Locked Moved Unsolved QtWebEngine
3 Posts 2 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    noobs
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Flatlander_1968
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • N Offline
        N Offline
        noobs
        wrote on last edited by
        #3

        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
                onCertificateError:{
                error.CertificateInvalid
                    error.ignoreCertificateError()
                    console.log(error)
        
        
            }
        onFeaturePermissionRequested: { console.log("request")
            grantFeaturePermission(securityOrigin, feature, true);
        }
        
        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved