5

I need to add new items in my ListView and scroll it automatically. I created an application and it worked well for SDK Beta 1, but it doesn't work properly for Beta 2. For example, I have 20 items in ListView and the first 5 of them are visible on the screen. If I call from my C++ method something like:

listView->scrollTo(ScrollPosition::End)

I can see only the last item on the top of ListView. I can scroll it down manually and it will work well, but I can't do the same from code.

Michael Donohue
  • 11,776
  • 5
  • 31
  • 44

1 Answers1

1

The API documentation is not explicit, but does imply the behaviour you are seeing. You may want to use an alternate method: scrollToItem()

Richard
  • 8,920
  • 2
  • 18
  • 24
  • Did you try specifying the list item that you want displayed at the top? – Richard Aug 15 '12 at 12:03
  • Hi, i am having Comments option in my application if user types a comment means i need to show in the bottom(above of my textfield)but i can able to do this,the typed comments are showing top how to solve this issue i have implemented my listview using QML.! – Vendetta Feb 27 '13 at 13:29