PathQuad QML Type

定义带有控制点的二次贝塞尔曲线。更多

Import Statement: import QtQuick

属性

详细说明

以下 QML 生成的路径如下所示:

Path {
    startX: 0; startY: 0
    PathQuad { x: 200; y: 0; controlX: 100; controlY: 150 }
}

另请参阅 Path,PathCubic,PathLine,PathArc,PathAngleArc,PathCurve, 和PathSvg

属性文档

x : real

y : real

定义曲线的终点。

另请参阅 relativeXrelativeY


relativeX : real

relativeY : real

定义曲线相对于起点的终点。

如果同时为一个轴指定了相对和绝对的终点位置,则将使用相对位置。

相对位置和绝对位置可以混合使用,例如可以设置相对的 x 和绝对的 y。

另请参阅 xy


controlX : real

controlY : real

定义控制点的位置。


relativeControlX : real

relativeControlY : real

定义控制点相对于曲线起点的位置。

如果同时为一个轴指定了相对控制位置和绝对控制位置,则使用相对位置。

相对位置和绝对位置可以混合使用,例如可以设置相对控制 x 和绝对控制 y。

另请参见 controlXcontrolY


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