QML 实现简单的翻页功能
来源:互联网 发布:mysql忘记用户名密码 编辑:程序博客网 时间:2024/05/01 09:16
利用动画实现简单翻页。可以利用现有HTML5实现复杂效果。
代码如下
ApplicationWindow { visible: true width: 640 height: 480 //title: qsTr("Hello World") color: "black" //利用动画实现简单的翻页效果。 //存在问题:如果是带字的 则在翻转过程中字体是反的。 Rectangle{ x: 300; y:100 Image { id: forimage source: "qrc:/9_club.png" } Image { id: backimge source: "qrc:/back.png" transform: Rotation { id: rotation;origin.x: -5; origin.y: 0; axis { x: 0; y: -1; z: 0 } angle: 0 } } SequentialAnimation { running: true PropertyAnimation { target: rotation; from : 0; to :90; property: "angle"; duration: 10000} //PropertyAnimation { target: backimge; to :"qrc:/9_club.png"; property: "source"; duration: 100} //PropertyAnimation { target: rotation; to :270; property: "axis.z"; duration: 1000} PropertyAnimation { target: rotation; from : 90; to :180; property: "angle"; duration: 10000} PropertyAnimation { target: rotation; to : backimge.height/2 ; property: "origin.y"; duration: 1} PropertyAnimation { target: rotation; to :270; property: "axis.z"; duration: 1} }}}
阅读全文
0 0
- QML 实现简单的翻页功能
- 翻页功能的实现
- 翻页功能的实现
- 翻页功能的实现
- java中简单的翻页功能的实现(PageManager)
- Bootstrap结合PHP实现简单的翻页功能
- web中翻页功能的实现
- extjs实现自动翻页的功能
- (转)翻页功能的实现
- 门户diy实现翻页功能的方法
- Vue实现表格的翻页显示功能
- jQuery实现简单的图片轮播(二)-增加左右(或上下)翻页功能
- 实现简单的一页展示多条数据左右翻页功能
- UIWebView 实现翻页功能
- UIWebView 实现翻页功能
- UIWebView 实现翻页功能
- JavaScript实现翻页功能
- 实现小说翻页功能
- 随笔记
- Python与MongoDB相关操作
- MIT18.06线性代数课程笔记8:求解Ax=b、矩阵的秩以及矩阵的逆
- 顺序表应用4-2:元素位置互换之逆置算法(数据改进)
- 实验一 线性表的应用(2学时)
- QML 实现简单的翻页功能
- 待学知识收藏
- 创建VUE项目框架02
- BZOJ 2037 Sue的小球 (基于未来状态的区间dp)
- Python入门(六)——self,类,方法,__init__,类对象,类变量,文件操作,判断回文,pickle模块用法
- 080 反常积分(广义积分)
- Java——BufferReader实现原理
- 使用laravel5.5 时遇到Undefined offset: 1的问题
- List集合使用注意点