Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57420

TVTennis examples show several qml animation bugs

    XMLWordPrintable

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

          Activity

            People

              veshivas Venugopal Shivashankar
              allan.jensen Allan Sandfeld Jensen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: