Qt:QML:文字自动滚动
来源:互联网 发布:剑灵龙女九头身数据图 编辑:程序博客网 时间:2024/05/21 09:20
文字自动滚动效果
代码
import QtQuick 2.5import QtQuick.Window 2.2Window { visible: true width: 400 height: 300 title: qsTr("Text Auto Scrool") Rectangle { width: 131; height: 25 color: "red" clip:true anchors.centerIn: parent Text { id:idtext //width: parent.width height:parent.height text:"123456789abcdefghijklmnopqrstuvwxyz" color:"yellow" verticalAlignment: Text.AlignVCenter SequentialAnimation on x { loops: Animation.Infinite PropertyAnimation { from:0 to: -idtext.width duration: 5000 } } } }}
完整代码: https://github.com/CodeBees/qtExample/tree/master/textautoscrool
1 0
- Qt:QML:文字自动滚动
- QT qml 自动登录
- QML中ScrollView的自动滚动
- Qml输入文本并自动滚动
- Android - 自动文字滚动TextView
- TextView文字横向自动滚动
- Qt:让QML中的控件自动缩放
- qt qml scrollbar 移动APP风格的滚动轴
- RICHTEXTBOX中实现文字的自动滚动
- 文字自动循环滚动 的js 函数
- TextView文字横向自动滚动(跑马灯)
- 文字滚动后自动停止的特效
- 文字自动循环滚动js函数
- UITextView 取消换行 文字自动向右滚动
- js图片文字上下自动滚动
- 文字溢出部分自动滚动显示
- 安卓设置文字自动滚动
- Qt QML
- 【Python】一劳永逸的为Python添加默认模块搜索路径即工作目录
- UNIX网络编程卷一 第四章 基本TCP套接字编程
- java多线程通信
- mysql 索引与优化 之 索引算法
- FZU2216【二分】
- Qt:QML:文字自动滚动
- JDK中多线程之原子类的JDK源码解读配合大神的一起看,秒懂。
- 从C#到TypeScrip
- hdu 4513左边到中间递增的回文串
- HDU 1081 To The Max
- html转换成excel表格导出兼容ie,火狐,谷歌
- 信息安全第三节课总结
- 【Android】Glide 如何获取 bitmap 来进行再处理(比如处理长图的显示)
- 《百万美元宝贝》