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() で構築された点の JS 配列、QPointFQList またはQVector 、あるいはQPolygonF とすることができます。これを何らかの 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.