Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Flickable {
- id: rec
- height: 19
- width : 80
- contentWidth: width; contentHeight: height
- clip: true
- Text {
- id: xmovingBox
- anchors.left: parent.left
- opacity: 1
- text: "hello, world"
- font.pointSize: 18
- XAnimator {
- id: foo
- target: xmovingBox;
- //loops: Animation.Infinite
- from: 0//rec.width
- to: - (xmovingBox.width - rec.width) - rec.width /2;
- duration: 100 * Math.abs(to - from)
- running: false
- }
- }
- MouseArea {
- anchors.fill: parent
- hoverEnabled: true
- onEntered: {
- foo.running = true
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement