mathtrainingstuff/CalculatorEndPage.qml
Max 6a25683375 added ColumnLayout for StartPage
with tickInterval, numCount, min and max
2018-11-24 13:50:06 +01:00

49 lines
928 B
QML

import QtQuick 2.11
import QtQuick.Controls 2.4
import "./"
Page {
id: root
signal pageOpened()
onPageOpened: {
rectAnim.start()
startRectAnim2.start()
}
Rectangle {
id: rect
anchors.fill: parent
property string col: "darkgreen"
color: col
Timer {
id: startRectAnim2
interval: 5000
running: false
repeat: false
onTriggered: {
rectAnim2.start()
}
}
ColorAnimation {
id: rectAnim
target: rect
property: "color"
from: "darkGreen"
to: "yellow"
duration: 5000
}
ColorAnimation {
id: rectAnim2
target: rect
property: "color"
from: "yellow"
to: "darkRed"
duration: 5000
}
}
}