PathLine QML Type

直線を定義します。詳細...

Import Statement: import QtQuick

プロパティ

詳細説明

以下の例は、0,100 から 200,100 までの直線からなるパスを作成します:

Path {
    startX: 0; startY: 100
    PathLine { x: 200; y: 100 }
}

Path,PathQuad,PathCubic,PathArc,PathAngleArc,PathCurve,PathSvg,PathMove,PathPolyline, およびPathRectangleも参照してください

プロパティ・ドキュメンテーション

x : real

y : real

線の終点を定義する。

relativeX およびrelativeYも参照のこと


relativeX : real

relativeY : real

線の始点からの相対的な終点を定義する。

1つの軸に対して相対位置と絶対位置の両方の終了位置が指定されている場合は、相対位置が使用される。

相対位置と絶対位置は混在することができ、例えば、相対 x と絶対 y を設定することは有効である。

x およびyも参照


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