查看完整版本: [-- qml 动画 --]

QTCN开发网 -> Qt QML开发 -> qml 动画 [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

dyongfly 2016-09-07 00:25

qml 动画

  请教下,如何知道qml的动画已经完成呢。
如:
  1. PropertyAnimationa {id: aimation; running: true; target: xxx; property: "opacity"; to: 1.0; duration: 1000; }
    1秒后这个动画完成,有没有类似于回调函数一样的方法,知道这个动画已经完成了

lemonzll 2016-09-07 09:20
你看下Animation的文档,有两个信号started和stopped,关联下就可以

dyongfly 2016-09-07 12:09
我就是没找到怎么关联,请指教下,谢谢

never_forget 2016-09-08 12:57
like this !
[attachment=15740]

dyongfly 2016-09-08 22:09
never_forget:like this !
[图片] (2016-09-08 12:57) 

nice!!!谢谢


查看完整版本: [-- qml 动画 --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled