Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 Map does not work anymore
Forum Updated to NodeBB v4.3 + New Features

Qt5 Map does not work anymore

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 140 Views 1 Watching
  • 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.
  • JoeCFDJ Offline
    JoeCFDJ Offline
    JoeCFD
    wrote last edited by JoeCFD
    #1

    I made a small test code for map display a week earlier. The code worked just fine before. Today, It does not work anymore(whte screen) while no changes have been made.

    Grok query results:

    Based on recent OpenStreetMap (OSM) announcements and Ubuntu package histories, the most likely culprit is a technical update to the tile.openstreetmap.org raster tile service rolled out on December 7, 2025. Qt 5.15's OSM plugin (in libqt5location5-plugins) has
    long-standing issues with HTTPS enforcement and parameter handling, making it brittle to server-side tweaks like this.

    Does anyone have the same issue? Qt 5.15.3 on Ubuntu 22.04
    The map test cases in Qt6 are all right.

    import QtQuick 2.15
    import QtLocation 5.15
    import QtPositioning 5.15
    
    Rectangle {
        id: mapObject
        objectName: "mapObject"
        width: 500
        height: 500
        visible: true
    
        // default location: Oslo
        property real locationX: 59.91
        property real locationY: 10.75
    
        Plugin {
            id: osmPlugin
            name: "osm"
    
            PluginParameter {
                name: "osm.mapping.providersrepository.disabled"
                value: "true"
            }
    
    
            PluginParameter {
                name: "osm.mapping.custom.host"
                value: "https://tile.openstreetmap.org/%z/%x/%y.png"
            }
        }
    
        Map {
            id: mapView
            anchors.fill: parent
            plugin: osmPlugin
            center: QtPositioning.coordinate(locationX, locationY) //(59.91, 10.75) // Oslo
            zoomLevel: 14
    
            activeMapType: mapView.supportedMapTypes[ mapView.supportedMapTypes.length - 1 ]
        }
    }
    
    Ronel_qtmasterR 1 Reply Last reply
    0
    • jeremy_kJ jeremy_k

      I have the same issue unless the default tile provider (currently Thunderforest) is used.

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote last edited by JoeCFD
      #4

      @jeremy_k Tried the same code with Qt 5.15.13 on Ubuntu 23.04 and map can be displayed properly. I am trying to build 5.15.18 on Ubuntu 22.04 and will see if the map can be displayed.

              PluginParameter {
                  name: "osm.mapping.custom.host"
                  value: "https://tile.openstreetmap.org/  //make small changes
              }
      

      It is likely that the newer versions of Qt 5.15.x fixed some map issues.

      1 Reply Last reply
      0
      • jeremy_kJ Offline
        jeremy_kJ Offline
        jeremy_k
        wrote last edited by
        #2

        I have the same issue unless the default tile provider (currently Thunderforest) is used.

        Asking a question about code? http://eel.is/iso-c++/testcase/

        JoeCFDJ 1 Reply Last reply
        2
        • JoeCFDJ JoeCFD

          I made a small test code for map display a week earlier. The code worked just fine before. Today, It does not work anymore(whte screen) while no changes have been made.

          Grok query results:

          Based on recent OpenStreetMap (OSM) announcements and Ubuntu package histories, the most likely culprit is a technical update to the tile.openstreetmap.org raster tile service rolled out on December 7, 2025. Qt 5.15's OSM plugin (in libqt5location5-plugins) has
          long-standing issues with HTTPS enforcement and parameter handling, making it brittle to server-side tweaks like this.

          Does anyone have the same issue? Qt 5.15.3 on Ubuntu 22.04
          The map test cases in Qt6 are all right.

          import QtQuick 2.15
          import QtLocation 5.15
          import QtPositioning 5.15
          
          Rectangle {
              id: mapObject
              objectName: "mapObject"
              width: 500
              height: 500
              visible: true
          
              // default location: Oslo
              property real locationX: 59.91
              property real locationY: 10.75
          
              Plugin {
                  id: osmPlugin
                  name: "osm"
          
                  PluginParameter {
                      name: "osm.mapping.providersrepository.disabled"
                      value: "true"
                  }
          
          
                  PluginParameter {
                      name: "osm.mapping.custom.host"
                      value: "https://tile.openstreetmap.org/%z/%x/%y.png"
                  }
              }
          
              Map {
                  id: mapView
                  anchors.fill: parent
                  plugin: osmPlugin
                  center: QtPositioning.coordinate(locationX, locationY) //(59.91, 10.75) // Oslo
                  zoomLevel: 14
          
                  activeMapType: mapView.supportedMapTypes[ mapView.supportedMapTypes.length - 1 ]
              }
          }
          
          Ronel_qtmasterR Online
          Ronel_qtmasterR Online
          Ronel_qtmaster
          wrote last edited by
          #3

          @JoeCFD Also consider using other maps providers like here or mapbox. And make sure your app is deployed and running with openssl included

          JoeCFDJ 1 Reply Last reply
          0
          • jeremy_kJ jeremy_k

            I have the same issue unless the default tile provider (currently Thunderforest) is used.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote last edited by JoeCFD
            #4

            @jeremy_k Tried the same code with Qt 5.15.13 on Ubuntu 23.04 and map can be displayed properly. I am trying to build 5.15.18 on Ubuntu 22.04 and will see if the map can be displayed.

                    PluginParameter {
                        name: "osm.mapping.custom.host"
                        value: "https://tile.openstreetmap.org/  //make small changes
                    }
            

            It is likely that the newer versions of Qt 5.15.x fixed some map issues.

            1 Reply Last reply
            0
            • Ronel_qtmasterR Ronel_qtmaster

              @JoeCFD Also consider using other maps providers like here or mapbox. And make sure your app is deployed and running with openssl included

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote last edited by
              #5

              @Ronel_qtmaster it is a requirement. I can not change it. Thanks for your reply.

              1 Reply Last reply
              0
              • JoeCFDJ JoeCFD has marked this topic as solved

              • Login

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