このページでは

LocationPermission QML Type

ユーザーの現在地へのアクセス。詳細...

Import Statement: import QtCore
Since: Qt 6.6

プロパティ

  • status : Qt::PermissionStatus

方法

詳細説明

この型はQLocationPermission を表しており、ユーザーの現在地のステータスを確認したり、現在地へのアクセスを要求したりするために使用できます。

個々のプロパティおよび詳細な使用要件については、「QLocationPermission 」のドキュメントを参照してください。

「QML アプリケーションの権限」、「アプリケーションの権限」、および「QLocationPermission 」も参照してください 。

プロパティのドキュメント

status : Qt::PermissionStatus

このプロパティは、権限の現在の状態を保持します。

「QCoreApplication::checkPermission」も参照してください 。

メソッドのドキュメント

void request()

現在のプロパティを使用して権限をリクエストします。

QCoreApplication::requestPermission()も参照してください 。

© 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.