이 페이지에서

point QML Value Type

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

Import Statement: import QtQml

상세 설명

point 유형은 x 및 y 속성을 가진 값을 나타냅니다.

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 값 유형도 참조하십시오 .

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