slint
slint copied to clipboard
callback for when Flickable is scrolled
My application uses a ListView to display data from a database. Data is fetched from the database asynchronously in paginated chunks. Presently it seems there isn't a means for the application to determine when to fetch the next page from the database. The viewport-y
and viewport-height
properties could be used to calculate the relative position of the scrollbar within the data already being displayed. However, there is no callback to hook into when viewport-y
changes, or if there is, it isn't documented. With a scrolled
callback, I could determine when more data needs to be fetched.