本页内容

PathAngleArc QML Type

定义一个具有给定半径和中心的弧。更多...

Import Statement: import QtQuick

属性

详细说明

PathAngleArc 提供了一种指定弧线的简便方法。虽然PathArc 旨在作为更大路径的一部分(指定起始点和终点),但 PathAngleArc 的设计初衷是让以弧线为主的路径(例如圆形进度指示器)更加直观。

另请参阅 Path 、PathLine 、PathQuad 、PathCubic 、PathCurve 、PathSvg 、PathArc 以及PathRectangle 。

属性文档

centerX : real

centerY : real

定义弧的中心。

moveToStart : bool

该元素是否应与前一个 Path 元素(或 startX/Y)断开连接。

默认值为 true。若设置为 false,则前一个元素的终点(若PathAngleArc 是第一个元素,则为 startX/Y)将通过一条直线与该弧的起点相连。

radiusX : real

radiusY : real

定义了该弧所属于的椭圆的半径。

startAngle : real

定义弧线的起始角度。

起始角度按顺时针方向表示,3点钟位置为零度。

sweepAngle : real

定义弧线的扫掠角。

弧线将从startAngle 点开始,并沿sweepAngle度进行扫掠,当sweepAngle的值为360时,将形成一个完整的圆。正数表示顺时针方向,负数表示逆时针方向。

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