PathArc QML Type
以给定的半径定义弧线。更多
Import Statement: | import QtQuick |
属性
- direction : enumeration
- radiusX : real
- radiusY : real
- relativeX : real
- relativeY : real
- useLargeArc : bool
- x : real
- xAxisRotation : real
- y : real
详细说明
PathArc 提供了一种指定弧线的简单方法,该弧线在给定位置结束并使用指定的半径。它仿效 SVG 椭圆弧命令。
下面的 QML 生成了下图所示的路径:
请注意,单个 PathArc 不能用于指定圆。您可以使用两个 PathArc 元素,每个元素指定半个圆。
另请参阅 Path,PathLine,PathQuad,PathCubic,PathAngleArc,PathCurve 和PathSvg 。
属性文档
定义圆弧的半径。
下面的 QML 演示了如何使用不同的半径值来改变圆弧的形状:
direction : enumeration |
useLargeArc : bool |
xAxisRotation : real |
© 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.