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. OSM api Key for QT
Forum Update on Monday, May 27th 2025

OSM api Key for QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.5k 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.
  • P Offline
    P Offline
    Putrazoo
    wrote on last edited by
    #1

    Hi everyone. I'm facing some problems when implementing an OSM map into QT. I watched some videos this type and it works fine for them. But in my case i get to visualize the map but with a message "API KEY REQUIERED" and with no utilities. I've tried to fix it but i failed. if someone can help me please.
    i'll share my QML file if that can help

    import QtQuick 2.15
    import QtLocation 5.15
    import QtPositioning 5.15
    import QtQuick.Controls 2.15
    ApplicationWindow {
        visible: true
        width: 800
        height: 600
    
        Map {
            anchors.fill: parent
    
            plugin: Plugin {
                name: "osm"
                PluginParameter {
                    name: "osm.mapping.providersrepository.disabled"
                    value: "true"
                    }
    
            }
            PluginParameter {
                        name: "osm.mapping.providersrepository.address"
                        value: "http://maps-redirect.qt.io/osm/5.6/"
                    }
            center: QtPositioning.coordinate(51.5072, -0.1276)
            zoomLevel: 10
        }
    }
    
    

    7764a9cb-474c-44c6-91d5-07564c7b3832-image.png

    Thanks

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi @Putrazoo, and welcome!

      See https://bugreports.qt.io/browse/QTBUG-115742

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • Ketan__Patel__0011K Offline
        Ketan__Patel__0011K Offline
        Ketan__Patel__0011
        wrote on last edited by
        #3

        You can see following videos on youtube About Qt Location And Qt Positioning Application.

        Qt Location And Qt Positioning : https://www.youtube.com/playlist?list=PLh0cogPqXcJOVXsLsEKEFi4CbbBou2neH

        I hope you will get the solution from this video.

        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