Please try run my qml and figure out what is wrong. I corrected code and it is still not working, it is as follow:
import QtQuick 2.5
import QtQuick.Window 2.2
import QtQuick.Controls 1.4
Window {
visible: true
title: qsTr("Hello World")
visibility: Window.Maximized
Rectangle
{
id: baza
x: 0
y: 0
width: parent.width
height: parent.height
Rectangle
{
id: rect1
x: 0
y: 0
width: 9
height: 100
radius: width / 2
color: "blue"
SequentialAnimation on y {
loops: Animation.Infinite
running: true
NumberAnimation { from: 0; to: { baza.height - rect1.heigh; } easing.type: Easing.OutExpo; duration: 3000 }
}
}
MouseArea
{
anchors.fill: baza
onClicked:
{
Qt.quit();
}
}
}
}
import QtQuick 2.5
import QtQuick.Window 2.2
import QtQuick.Controls 1.4
Window {
visible: true
title: qsTr("Hello World")
visibility: Window.Maximized
Rectangle
{
id: baza
x: 0
y: 0
width: parent.width
height: parent.height
Rectangle
{
id: rect1
x: 0
y: 0
width: 9
height: 100
radius: width / 2
color: "blue"
SequentialAnimation on y {
loops: Animation.Infinite
running: true
NumberAnimation { from: 0; to: { baza.height - rect1.heigh; } easing.type: Easing.OutExpo; duration: 3000 }
}
}
MouseArea
{
anchors.fill: baza
onClicked:
{
Qt.quit();
}
}
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks