このページでは

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 。

プロパティのドキュメント

path : list<point>

このプロパティは、ポリラインの頂点を定義します。

このプロパティには、Qt.point() で構築された点のJS配列、QList 、QPointF のQVector 、またはQPolygonF を指定できます。これをC++オブジェクトのカスタムプロパティにバインドする場合は、QPolygonF が最も適切な型です。

start : point [read-only]

この読み取り専用プロパティには、ポリラインの始点が格納されています。

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