ColorOpacityAnimation QML Type
对颜色的透明度值进行动画处理,同时不改变颜色的其他属性。更多...
| Import Statement: | import QtQuick.VectorImage.Helpers |
| Since: | Qt 6.10 |
| Inherits: |
属性
详细说明
此类型将对颜色的透明度(alpha)值进行动画处理,而不会修改其他颜色成分。它用于支持 SVG 的fill-opacity 和stroke-opacity 属性,这些属性可以独立于形状本身的透明度进行动画处理。
属性文档
from : real
动画开始时该颜色的阿尔法通道的数值。
to : real
动画结束时该颜色的Alpha通道的值。
© 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.