Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML ListView: How to disable autoscrolling when new elements prepend/append/inserted?

QML ListView: How to disable autoscrolling when new elements prepend/append/inserted?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 794 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CalciferC Offline
    CalciferC Offline
    Calcifer
    wrote on last edited by
    #1

    I am trying to prepend a number of model elements at the front of model, but I don't want to show them immediately.

    This function "positionViewAtIndex()" may be useful, but really poor performance.

    Thanks for any advice.

    1 Reply Last reply
    1
    • P Offline
      P Offline
      pagdot
      wrote on last edited by
      #2

      You can try to set highlightFollowsCurrentItem to false or save the current item before the prepend and restore it afterwards

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved