geoCircle QML Value Type
geoCircle 유형은 원형의 지리적 영역을 나타냅니다. 더 보기...
| Import Statement: | import QtPositioning |
속성
상세 설명
geoCircle 유형은 원형 지리적 영역을 나타내는 geoShape 입니다. 이는 QGeoCircle 을 직접적으로 나타내며, 원의 center 를 지정하는 coordinate 와 원의 radius 를 미터 단위로 지정하는 qreal을 통해 정의됩니다.
center 좌표가 유효하지 않거나 radius 값이 0보다 작은 경우, 해당 원은 유효하지 않은 것으로 간주됩니다.
사용 예
geoCircle 값을 생성하려면 QtPositioning.circle() 함수를 사용합니다:
import QtPositioning
Item {
property geoCircle region: QtPositioning.circle(QtPositioning.coordinate(-27.5, 153.1), 1000)
}C++과 통합할 때, C++에서 QML로 전달된 모든 QGeoCircle 값은 자동으로 geoCircle 값으로 변환됩니다. 마찬가지로, geoCircle 값은 QML에서 C++로 전달될 때 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.