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

TableView flicking misbehaves with Window ancestor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 5.14.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      If the top-level Item is a Window, then TableView flicking mis-behaves as described below.

      SCENARIO #1: One column is narrower than the others.

      Flicking left initially leaves the table stopped partially out of view, i.e. so the right edge of the grid is in the middle of the viewport, even though the grid is larger than the viewport.   

      However the problem disappears after flicking vertically back and forth a few times (to cause delegates to be recycled?)    Then behavior becomes normal, with the entire viewport filled with a portion of the grid at all times.

      This seems to happen when top-level Item is a Window rather than just a Rectangle.

      STEPS TO REPRODUCE:

      1.  Run attached demo2.qml with qmlscene
      2. Move the table left as far as possible (I am using a mouse on a desktop computer)

        RESULT: A large portion of the background Window becomes visible on the right
        EXPECTED: Flicking should stop before obscuring more data than necessary

      3. Flick up and down a few times

        RESULT: The above behavior stops, and horizontal flicking works as expected.\

      SCENARIO #2: One row shorter than other rows:

      This makes vertical flicking completely frozen – it is impossible to flick off-screen rows into view.  Please run the attached demo_frozenvertical2.qml

      This problem seems sensitive to the exact size of the Window; making the viewport smaller, either by changing the initial height: of the Window, or by resizing it with the mouse while running, makes the problem disappear.

        Attachments

        1. typescript1.txt
          21 kB
        2. dt_video_20200506.mp4
          2.71 MB
        3. demo2.qml
          2 kB
        4. demo_frozenvertical2d.qml
          3 kB

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              richard Richard Moe Gustavsen
              Reporter:
              jimav Jim Avera
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes