slint icon indicating copy to clipboard operation
slint copied to clipboard

callback for when Flickable is scrolled

Open Be-ing opened this issue 2 years ago • 0 comments

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.

Be-ing avatar Aug 06 '22 21:08 Be-ing