Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.11
- import QtQuick.Window 2.11
- Window {
- visible: true
- width: 640
- height: 480
- title: qsTr("Hello World")
- Flickable {
- id: flickable
- anchors.fill: parent
- interactive: true
- contentWidth: img.width
- contentHeight: img.height
- Rectangle {
- id: img
- width: 4000
- height: 2000
- color: "red"
- Repeater {
- model: 40
- Rectangle {
- x: index * 100 + 5
- width: 100
- height: 500
- property real tmp: ((100 * index) % 256) / 256
- color: Qt.rgba(tmp, tmp, tmp, 1)
- anchors.verticalCenter: parent.verticalCenter
- }
- }
- }
- SequentialAnimation {
- running: true
- loops: 100
- NumberAnimation {
- target: img
- property: "x"
- from: 0
- duration: 5000
- to: -img.width
- }
- NumberAnimation {
- target: img
- property: "x"
- to: 0
- duration: 5000
- from: -img.width
- }
- }
- }
- }
- //LibGL Vendor: Intel Open Source Technology Center
- //Renderer: Mesa DRI Intel(R) Ivybridge Desktop
- //Version: 3.0 Mesa 18.0.5
- //Shading language: 1.30
- //Format: Version: 3.0 Profile: 0 Swap behavior: 0 Buffer size (RGB): 8,8,8
- //Profile: None (QOpenGLFunctions_3_0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement