geoCircle QML Value Type
geoCircle型は円形の地理的領域を表す。詳細...
Import Statement: | import QtPositioning |
プロパティ
詳細説明
geoCircle型は、円形の地理領域を表すgeoShape 。これはQGeoCircle の直接表現であり、円のcenter を指定するcoordinate と、円のradius をメートル単位で指定する qreal で定義される。
center 座標が無効な場合、またはradius が 0 より小さい場合、円は無効とみなされる。
使用例
ジオサークル値を作成するには、QtPositioning.circle() 関数を使用します:
import QtPositioning Item { property geoCircle region: QtPositioning.circle(QtPositioning.coordinate(-27.5, 153.1), 1000) }
C++ と統合する場合、C++ から QML に渡されたQGeoCircle の値は自動的に geoCircle の値に変換されます。同様に、ジオサークル値は QML から C++ に渡される際、QGeoCircle に変換されます。
プロパティの説明
center : geoCoordinate |
このプロパティはgeoCircle の中心の座標を保持する。
© 2025 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.