ColorOpacityAnimation QML Type
在不修改颜色其他部分的情况下动画颜色的 alpha 值。更多
Import Statement: | import QtQuick.VectorImage.Helpers |
Since: | Qt 6.10 |
Inherits: |
属性
详细说明
该类型将在不修改其他组件的情况下对颜色的 alpha 值进行动画处理。它用于支持 SVG 的fill-opacity
和stroke-opacity
属性,这些属性可以与形状本身的不透明度分开动画。
属性文档
from : real |
动画开始时颜色的 alpha 通道的值。
to : real |
动画结束时颜色的 alpha 通道的值。
© 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.