qmlweb
qmlweb copied to clipboard
Flicker issue
There is a flash of the green rect at the reset of the animation that does not happen in QtQuick 2.
Minor, but I'm leaving this report here.
import QtQuick 2.0
Rectangle {
id: root
width: 500; height: 200
color: "blue"
Rectangle {
id: greenRect
color: "green"
width: 50
height: 50
Behavior on x {
NumberAnimation {
duration : 1000
}
}
}
Timer {
interval: 1000
running: true
repeat: true
onTriggered: {
greenRect.x = (greenRect.x == root.width - greenRect.width) ?
0 : root.width - greenRect.width ;
console.log("triggered", greenRect.x);
}
}
}
Yes, I am able to reproduce this, thanks!
The difference here is that e.g. x = 100 actually sets x to 100 first, then begins animating it from its previous value to 100.
I don't follow. Ib don't see the same in regular qtquick
@jhihn Yes, that is a bug, I just described the cause of the flicker.
Gotcha.