PathInterpolated QML Type
将路径定义为列表中两个路径之间的内插值。更多
| Import Statement: | import QtQuick.VectorImage.Helpers |
| Since: | Qt 6.11 |
属性
详细说明
此项目提供了一种指定插值路径的简单方法。这对于显示动画路径(一条路径逐渐变形为下一条路径)非常有用。
插值终点在svgPaths 列表属性中指定,语法与PathSvg 项相同。根据factor 属性,生成的路径将是列表中路径n和n+1之间的插值,其中n是系数的整数部分。小数部分决定两者之间的插值权重。
属性文档
factor : real
该属性保留了插值因子。有效值箝位在[0,svgPaths.size - 1]。
svgPaths : stringlist
该属性包含一个路径列表,以PathSvg 的方式指定为 SVG 文本字符串。
在列表中的两个路径之间生成一个内插值,取决于它们具有相同数量和类型的路径元素。生成的路径具有相同的元素,坐标在两个源路径之间线性插值。
© 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.