Access the user's location. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS Core) |
target_link_libraries(mytarget PRIVATE Qt6::Core)
|qmake:||QT += core|
To request this permission at runtime, the following platform specific usage declarations have to be made at build time:
Please see the individual usage declaration types for how to add them to your project.
Member Type Documentation
This enum is used to control the accuracy of the location data.
|An approximate location is requested.|
|A precise location is requested.|
This enum is used to control the availability of the location data.
|The location is only available only when the application is in use.|
|The location is available at all times, including when the application is in the background.|
Member Function Documentation
QLocationPermission::Accuracy QLocationPermission::accuracy() const
Returns the accuracy of the request.
See also setAccuracy().
QLocationPermission::Availability QLocationPermission::availability() const
Returns the availability of the request.
See also setAvailability().
void QLocationPermission::setAccuracy(QLocationPermission::Accuracy accuracy)
Sets the desired accuracy of the request.
See also accuracy().
void QLocationPermission::setAvailability(QLocationPermission::Availability availability)
Sets the desired availability of the request.
See also availability().
© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.