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

positionViewAtEnd doesn't work properly if called from onContentHeightChanged

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.8.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      archlinux stable with Qt 4.8.3

      Description

      I've been finding this problem a couple of times.

      I want a view that keeps scrolling down à la chat log and the implementation I preferred was to move the view to the bottom onContentHeightChanged (onCountChanged has the same effect, from the ListView).

      The problem is that the view doesn't scroll to the end, it usually scrolls to half the last line and it's really ugly.

      See the attached script. Run qmlviewer testscrolling.qml
      There you'll see the filled list with a TextField, just press enter and you'll see the effect.

      If I don't set a "section" then this doesn't happen.

        Attachments

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

          Activity

            People

            Assignee:
            aalpert Alan Alpert
            Reporter:
            apol-old Aleix Pol (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes