PropertyAnimation
来源:互联网 发布:社交网络营销策划方案 编辑:程序博客网 时间:2024/06/06 12:22
PropertyAnimation
在过渡中使用
Rectangle { id: rect width: 100; height: 100 color: "red" states: State { name: "moved" PropertyChanges { target: rect; x: 50 } } transitions: Transition { PropertyAnimation { properties: "x,y"; easing.type: Easing.InOutQuad } } }
在Behavior
Rectangle { width: 100; height: 100 color: "red" Behavior on x { PropertyAnimation {} } MouseArea { anchors.fill: parent; onClicked: parent.x = 50 } }
在组合动画中
Rectangle { width: 100; height: 100 color: "red" SequentialAnimation on x { loops: Animation.Infinite PropertyAnimation { to: 50 } PropertyAnimation { to: 0 } } }
在信号处理中
MouseArea { anchors.fill: theObject onClicked: PropertyAnimation { target: theObject; property: "opacity"; to: 0 } }
单独使用
Rectangle { id: theRect width: 100; height: 100 color: "red" // this is a standalone animation, it's not running by default PropertyAnimation { id: animation; target: theRect; property: "width"; to: 30; duration: 500 } MouseArea { anchors.fill: parent; onClicked: animation.running = true } }
0 0
- PropertyAnimation
- PropertyAnimation
- ApiDemos-- PropertyAnimation
- Android动画--PropertyAnimation
- 属性动画PropertyAnimation 小试牛刀
- Android动画--PropertyAnimation
- 7.3 Android Framework - PropertyAnimation
- 【Android】PropertyAnimation属性动画
- QML动画 之 PropertyAnimation
- TweenAnimation和PropertyAnimation
- PropertyAnimation属性动画
- 动画之属性动画--PropertyAnimation
- Qt PropertyAnimation动画残影
- Android 属性动画(PropertyAnimation)详解
- Android属性动画(PropertyAnimation)
- Android PropertyAnimation自我学习(一)
- Android API Guide --- PropertyAnimation(属性动画)
- Android PropertyAnimation官网文档翻译
- 推荐系统
- Android radiobutton 利用 SpannableString 实现图文混排 实现 iOS segmentcontrol效果
- SPSS常见数据分析方法比较汇总
- Maven Assembly Plugin
- 关于JSP导入core.tld发生错误
- PropertyAnimation
- Vue.js2.0之组件篇
- jackson annotations注解详解
- Detection物体检测及分类方法总结(RFCN/SSD/RCNN/FastRCNN/FasterRCNN/SPPNet/DPM/OverFeat/YOLO)
- 使用BigInteger.setBit与BigInteger.testBit来实现权限控制
- Android 之 Notification 必须掌握的知识
- PK3Err0040: The target device is not ready for debugging. Please check your configuration bit settin
- 十六、Mysql 连接查询
- linux shell脚本总结一