Fluent-Qt

API 参考

Animation

该头文件公开的类型、函数与常量参考。

Animation

方法

inline QEasingCurve getEasing(EasingType type)

将语义化缓动 token 转换为 Qt 缓动曲线。

枚举

enum class EasingType

组件动画使用的语义化缓动曲线。

  • Standard 平滑开始与结束。
  • Accelerate 慢启快收。
  • Decelerate 快启慢收。
  • Entrance 带轻微回弹的进入。
  • Exit 快速消失。

Animation::Duration

常量

const int Fast = 150

即时反馈,如按钮点击和小控件切换。

const int Normal = 250

标准展开/收起和简单进出场。

const int Slow = 400

页面、弹层或布局等较明显变化。

const int VerySlow = 700

大型容器初始加载。