このページでは

geoCircle QML Value Type

geoCircle 型は、円形の地理的領域を表します。詳細...

Import Statement: import QtPositioning

プロパティ

詳細な説明

geoCircle 型は、円形の地理的領域を表すgeoShape です。これはQGeoCircle の直接的な表現であり、円のcenter を指定するcoordinate と、円のradius をメートル単位で指定するqrealを用いて定義されます。

center 座標が無効である場合、またはradius がゼロ未満である場合、その円は無効とみなされます。

使用例

geoCircle 値を作成するには、QtPositioning.circle() 関数を使用します:

import QtPositioning

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

C++ と統合する場合、C++ から QML に渡された `QGeoCircle ` 値は、自動的に `geoCircle` 値に変換されます。同様に、QML から C++ に渡される `geoCircle` 値は、`QGeoCircle ` 値に変換されます。

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

center : geoCoordinate

このプロパティには、geoCircle の中心座標が格納されています。

radius : real

このプロパティは、geoCircle の半径(メートル単位)を保持します。

半径のデフォルト値は -1 で、これはgeoCircle の領域が無効であることを示します。

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