PathPolyline QML Type

좌표 목록을 통해 폴리라인을 정의합니다. 더 보기...

Import Statement: import QtQuick
Since: QtQuick 2.14

속성

상세 설명

아래 예는 포함 도형의 바운딩 박스 가장자리에 4개의 정점으로 구성된 삼각형 경로를 만듭니다. 포함 도형의 scale 속성을 통해 경로의 크기가 포함 도형과 함께 조정됩니다.

PathPolyline {
    id: ppl
    path: [ Qt.point(0.0, 0.0),
            Qt.point(1.0, 0.0),
            Qt.point(0.5, 1.0),
            Qt.point(0.0, 0.0)
          ]
}

Path, PathQuad, PathCubic, PathArc, PathAngleArc, PathCurve, PathSvg, PathMove, PathPolyline참조하세요 .

속성 문서

path : list<point>

이 속성은 폴리라인의 꼭지점을 정의합니다.

Qt.point(), QList 또는 QVectorQPointF 또는 QPolygonF 로 구성된 점의 JS 배열일 수 있습니다. 일부 C++ 객체의 사용자 정의 프로퍼티에 바인딩하는 경우 QPolygonF 가 가장 적합한 유형입니다.


start : point [read-only]

이 읽기 전용 프로퍼티에는 폴리라인의 시작 부분이 포함됩니다.


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