point QML Value Type

x 및 y 속성을 가진 값입니다. 더 보기...

상세 설명

point 유형은 xy 속성이 있는 값을 참조합니다.

point 값을 만들려면 "x,y" 문자열로 지정합니다:

CustomObject { myPointProperty: "0,20" }

또는 Qt.point() 함수를 사용합니다:

CustomObject { myPointProperty: Qt.point(0, 20) }

C++와 통합할 때 C++에서 QML로 전달QPoint 또는 QPointF 값은 자동으로 point 값으로 변환된다는 점에 유의하세요. point 값이 C++로 전달되면 QPointF 값으로 자동 변환됩니다.

point 유형의 프로퍼티는 기본적으로 Qt.point(0, 0) 입니다.

QML 값 유형도참조하세요 .

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