PathInterpolated QML Type
Defines a path as an interpolated value between two of the paths in a list. More...
| Import Statement: | import QtQuick.VectorImage.Helpers |
| Since: | Qt 6.11 |
Properties
Detailed Description
This item provides a simple way to specify an interpolated path. This is useful for displaying animated paths, where one path is gradually morphed into the next.
The interpolation end points are specified in the svgPaths list property, using the same syntax as the PathSvg item. Based on the factor property, the resulting path will be an interpolation between path n and n+1 in the list, where n is the integer part of the factor. The fractional part determines the interpolation weight between the two.
Property Documentation
factor : real
This property holds the interpolation factor. The effective value is clamped to [0, svgPaths.size - 1].
svgPaths : stringlist
This property holds a list of paths, specified as SVG text strings in the manner of PathSvg.
The generation of an interpolated value between two of the paths in the list depends on them having the same number and types of path elements. The resulting path has the same elements, with coordinates linearly interpolated between the two source paths.
© 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.