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
该属性包含一个路径列表,路径以 SVG 文本字符串的形式指定,格式为PathSvg 。
列表中任意两条路径之间的插值值能否生成,取决于它们的路径元素数量和类型是否相同。生成的路径包含相同的元素,其坐标是在两条源路径之间进行线性插值的。
© 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.