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
값으로 변환되며, 그 반대의 경우도 마찬가지입니다.
속성
center
coordinate 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.