Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.7.0, 5.8.0 Beta
-
None
Description
Using the animations example and clicking on the "TV Tennis" example, you instead of getting a good example of QML get an example of at least 3 bugs.
First thing you notice is that the paddles do not follow the ball. Apparently binding y and having a behavior on it doesn't work:
y: ball.direction == 'left' ? ball.y - 45 : page.height/2 -45;
Behavior on y { SpringAnimation{ velocity: 300 } }
Removing the behavior makes the paddles follow the ball.
Second issue is that resizing the window does not affect the balls x coordinate animation. It was defined as:
NumberAnimation { to: page.width - 40; duration: 2000 }
Apparently 'to' isn't updated when page.width is.
Third, randomly the y animation of the ball will flatline when resizing. This might just be a bug in the example. Likely the spring-animation reaches its destination because its target isn't updated with page.height.
Attachments
Issue Links
- relates to
-
QTBUG-39203 Behavior on x/y enabled Binding Not Fails
- Open
-
QTBUG-58679 Behavior on height in a QML file is ignored
- Closed