このページでは

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 。

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

relativeX : real

relativeY : real

線の始点に対する終点を定義します。

1つの軸に対して相対位置と絶対位置の両方が指定された場合、相対位置が使用されます。

相対位置と絶対位置を混在させて指定することができます。たとえば、x 座標を相対位置で、y 座標を絶対位置で設定することも有効です。

x およびyも参照してください 。

x : real

y : real

線の終点を指定します。

relativeX およびrelativeYも参照してください 。

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