Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull-to-Refresh ListView in Qt/QML

Do you have any idea how to implement Pull-to-refresh ListView in Qt / QML ?

like image 809
Temirlan Avatar asked Dec 01 '25 16:12

Temirlan


1 Answers

Very simple solution present. You must use "oncontentY". At that callback you can check Y coordinates when user pull list down. Select some value for ex: -250 (my case) when update request must start, and some Y value, that mean default position of content: -90 in my case, because i have header with height 90. Only one additional boolean variable must control singleshoot of update. This is all. And it worked.

like image 65
LIV Avatar answered Dec 05 '25 04:12

LIV



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!