Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML mapviewer permission
Qt 6.11 is out! See what's new in the release blog

QML mapviewer permission

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 571 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.
  • O Offline
    O Offline
    OrazioArcidiacono
    wrote on last edited by
    #1

    Hello there :)
    I'm trying to run the mapviewer example... but I get this error on macOS. Can you help me?

    qt.permissions: Could not find permission plugin for QLocationPermission. Please make sure you have included the required usage description in your Info.plist

    In the .pro I added

    # Include Info.plist
    QMAKE_INFO_PLIST = Info.plist
    

    This is the Info.plist

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>CFBundleIdentifier</key>
        <string>com.yourcompany.yourapp</string>
        <key>CFBundleName</key>
        <string>Your App Name</string>
        <key>NSLocationWhenInUseUsageDescription</key>
        <string>Descrizione dell'uso della posizione quando l'app è in uso</string>
        <key>NSLocationAlwaysUsageDescription</key>
        <string>Descrizione dell'uso della posizione sempre</string>
    </dict>
    </plist>
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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