PropertyAnimation 结合使用的小例子
来源:互联网 发布:java storm整合kafka 编辑:程序博客网 时间:2024/05/17 02:39
import QtQuick 2.2import QtQuick.Window 2.0/************邱于涵*Time:2017年1月4日21:41:13*******/Window{ visible:true; width:400 height:400 title:"四个属性动画-涵涵" Rectangle{ width:400 height:400 color:"#EEEEEE" id:rootItem Rectangle{ id:rect width:150 height:150 color:"blue" PropertyAnimation{ id:animation target: rect //目标对象 property:"radius" //改变width属性 to:150 //改变为 150宽度 duration:5000 } PropertyAnimation{ id:rotationAni target:rect property:"rotation" to:800 duration:5000 } PropertyAnimation{ id:posAni target:rect property:"x" to:200 duration:5000 } PropertyAnimation{ id:colorAni target:rect property:"color" to:"red" duration:5000 } MouseArea{ anchors.fill: parent; //锚点为填充 填充的目标对象是 parent onClicked: { animation.running=true rotationAni.running=true posAni.running=true colorAni.running=true; } } } }}
0 0
- PropertyAnimation 结合使用的小例子
- AJAX与java servlet结合使用的小例子
- inotify和epoll结合使用的小例子
- Python Selenium结合使用的一个小例子
- Java Jetty 结合 hessian 使用小例子
- jquery easyui dataGrid 和struts2结合使用小例子
- C语言结构体结合malloc、free使用小例子
- const和指针结合使用的例子
- Android 3D与JNI结合的小例子
- struts2 跟jquery,json结合的一个小例子
- Android 3D与JNI结合的小例子
- 程序中,调用Bison和Flex结合的小例子
- jquery ajax 和servlet json 结合的简单小例子
- spring和jdbc结合的一个小例子
- Spring和Hibernate结合的一个小例子
- 结合EL表达式通过小例子体验JSTF的用法
- 使用UIPageControl的小例子
- 使用Datable 的小例子
- PHP自学笔记 ---李炎恢老师PHP第一季 TestGuest1.1 密码处理+1.2可选验证
- 分布式系统设计之租约
- LeetCode206—Reverse Linked List
- Mac 安装mysql遇到的坑
- 与其说是写技术类博客 不如说是写自己的感想,,
- PropertyAnimation 结合使用的小例子
- git学习笔记
- MATLAB之数组和矩阵
- 2017.01.04 这几天并不是偷懒,而是要忙自己的
- Mac Terminal增强对git命令支持
- Systematic review
- Struts2-6 OGNL表达式
- Retrofit2 文章索引
- 2017,新年