geocircle QML Value Type

ジオサークル型は円形の地理的領域を表す。詳細...

Import Statement: import QtPositioning

詳細な説明

geocircle 型は、円形の地理領域を表すgeoshape である。これはQGeoCircle の直接表現であり、円のcenter を指定するcoordinate と、円のradius をメートル単位で指定する qreal で定義される。

center 座標が無効な場合、またはradius が 0 より小さい場合、円は無効とみなされる。

使用例

geocircle を格納するには、var 型のプロパティを使用します。geocircle 値を作成するには、QtPositioning.circle() 関数を使用します:

import QtPositioning

Item {
    property var region: QtPositioning.circle(QtPositioning.coordinate(-27.5, 153.1), 1000)
}

C++と統合する場合、C++からQMLに渡されたQGeoCircle の値は自動的にgeocircle の値に変換されることに注意してください。

プロパティ

中心

coordinate radius

このプロパティはジオサークルの中心の座標を保持する。

radius

real radius

このプロパティはジオサークルの半径をメートル単位で保持する。

半径のデフォルト値は-1で、ジオサークルの領域が無効であることを示す。

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