Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

qt.network.ssl QSslSocket connectToHostEncrypted: TLS initialization failed



  • Hi all,
    I'm trying to display maps using open street maps plugin . While running the code I get the following error.
    qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
    Below is the code snippet

    Plugin {
        id: mapPlugin
        name: "osm" //"Open street maps"
    }
    

    Map {
    id:map
    anchors.fill: parent
    plugin: mapPlugin
    center: QtPositioning.coordinate(latitudeValue,longitudeValue)
    zoomLevel: 15

            MapCircle {
                color: "blue"
                opacity: 0.2
                radius: 100 //100 m radius
            }
        }
    

    }

    placing the above contents in some container(Rectangle).
    Only the map's footer is seen.Your quick suggestion would be a great help

    Thanks.


  • Lifetime Qt Champion

    Hi,

    What version of Qt are you using ?
    What version of OpenSSL are you using ?
    What OS are you running ?


Log in to reply