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

positionViewAtEnd doesn't work properly if called from onContentHeightChanged

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.3
    • None
    • archlinux stable with Qt 4.8.3

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes