QPermission usage question
-
I'm trying to understand why you'd want to use QPermission, specifically QLocationPermission. The docs say the following:
"Starting from Qt 6.6, the Qt Positioning module uses new QPermission API to handle location permissions. This means that Qt itself no longer queries for these permissions, so this needs to be done directly from the client application."
But on OSX and iOS apps, you specify in the Info.plist file that your app intends to use the location system (GPS) with one or more NSLocation keys. Android has something similar.
So, why would you use QPermission at all?
-
I'm trying to understand why you'd want to use QPermission, specifically QLocationPermission. The docs say the following:
"Starting from Qt 6.6, the Qt Positioning module uses new QPermission API to handle location permissions. This means that Qt itself no longer queries for these permissions, so this needs to be done directly from the client application."
But on OSX and iOS apps, you specify in the Info.plist file that your app intends to use the location system (GPS) with one or more NSLocation keys. Android has something similar.
So, why would you use QPermission at all?
@RogueWarrior
Not every platform a Qt application can be deployed on is Apple or Android.
Even if your metadata indicates that your application wants GPS access I expect the user can deny it. So, on Mac for example, you appear to still need to check in code that permission is there. This is what I expect QPermission wraps in a platform-agnostic fashion.