Important: Please read the Qt Code of Conduct - 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. QSslSocket::connectToHostEncrypted: TLS initialization failed
    Below is the code snippet

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

    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


  • Lifetime Qt Champion


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

Log in to reply