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

ListView transition breaks when transition starts above ListView and when height is animated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.2.1
    • None
    • Windows 7 & Android
    • 1246a5673fe352f10dc3236c248b1ca36d89bd04

    Description

      I have two panes, left & right in landscape more, top and bottom in portrait mode. Left pane has a text item the updates and upon an update the text gets added into a ListView in the right pane. I animate the added item from the location of the text in the left pane into the ListView, mapping the text item coordinates on resizing or orientation change. Mapping looks good to me as displayed as "sourceOrigin" on the console.

      Animation is as expected in initial landscape mode, but go into portrait mode and there it no animation. The x and y immediately get set to 0, this is despite the animation giving the 'to: 20' for the y coord.

      Switch to landscape mode again and it sometimes works ok again, but sometimes the animation does not start at the source text item but with a y value that is displaced to a variable degree.

      I have a cut-down example (its all relative) that illustrates this. I have the animation duration set to 10 secs so we can see what is happening and the timer duration to a longer 11 secs, otherwise the 'running' property is never unset (see https://bugreports.qt-project.org/browse/QTBUG-38099).

      So run the example, takes 11 secs to start, and see the landscape looks ok, then press the Portrait/Landscape button to check the portrait fails.

      Attachments

        1. Simplified.qml
          3 kB
          Jan Arve
        2. SightingsListPanel.qml
          9 kB
          Martyn Woerner
        3. SightingPanel.qml
          8 kB
          Martyn Woerner
        4. AminationBug.qml
          3 kB
          Martyn Woerner
        For Gerrit Dashboard: QTBUG-38229
        # Subject Branch Project Status CR V

        Activity

          People

            smd Jan Arve
            martynw Martyn Woerner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes