Qt Lottie Animation
Qt Lottie Animation提供了一个 QML API,用于渲染由 Adobe After Effects 的Bodymovin插件以 JSON 格式导出的图形和动画。
开始使用
使用以下语句导入类型:
import Qt.labs.lottieqt
有关如何下载和安装 Adobe After Effects 插件的说明,请参阅Bodymovin 的 GitHub 页面。
限制条件
实施过程遵循bodymovin 的主规范。如果发现导出的 Bodymovin 文件与规范有偏差,我们会尽可能加以考虑。
一般限制
precomps
不支持- 不支持表达式
- 时间轴只支持帧模式,不支持时间模式
动画级别限制
不支持以下属性:
assets
- 可重复使用的文本和图像chars
文本
图层
仅支持shape
图层和alpha mask adjustment
图层。
不支持以下属性:
ao
(自动调整方向)bm
(混合模式)maskProperties
遮罩sr
(时间拉伸)
形状
不支持以下元素和形状:
gstroke
(群组描边)元素star
元素- 嵌套的中继器形状
另请注意,使用多个活动修剪路径(例如嵌套组中的修剪路径)时的行为是不可预测的。
效果
唯一支持的效果是Slide
和Layer Fill
。
许可证
Qt Lottie Animation 该工具可通过The Qt Company 的商业许可使用。此外,它还受GNU 通用公共许可证第 3 版的保护。详情请参见Qt Licensing。
参考资料
相关信息
© 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.