LocationPermission QML Type
访问用户的位置。更多...
| Import Statement: | import QtCore |
| Since: | Qt 6.6 |
属性
- status : Qt::PermissionStatus
方法
- void request()
详细描述
此类型表示QLocationPermission ,可用于检查用户位置的状态并请求访问用户位置。
有关各个属性的文档和详细使用要求,请参阅QLocationPermission 。
另请参阅 QML 应用程序权限、应用程序权限以及QLocationPermission 。
属性文档
status : Qt::PermissionStatus
该属性保存了权限的当前状态。
另请参阅 QCoreApplication::checkPermission 。
方法文档
void request()
使用当前属性请求该权限。
© 2026 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.