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 값으로 변환됩니다. 마찬가지로, QML에서 C++로 전달될 때 geoCircle 값은 QGeoCircle 값으로 변환됩니다.

속성 문서

center : geoCoordinate

이 프로퍼티는 geoCircle 의 중심 좌표를 보유합니다.


radius : real

이 속성은 geoCircle 의 반지름을 미터 단위로 저장합니다.

반경의 기본값은 잘못된 geoCircle 영역을 나타내는 -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.