Thread
:
Detect vertical scroll direction in QML ListView?
View Single Post
gionni88
2012-07-01 , 07:12
Posts: 435 | Thanked: 769 times | Joined on Apr 2010
#
4
In QML there are signals for every property change, so with
Code:
onVerticalVelocityChanged: console.debug(verticalVelocity)
you get the current flicking velocity, which is negative if you're going up, or positive if you're going down.
But for your purpose, I'd show the pulldownitem when contentY is something like -200 (which means the user has pulled the list 200pixels below).
onContentYChanged: {
console.debug(contentY)
if (contentY == -200) showPulldownItem()
}
EDIT: ofc the debug line is only for checking, remove if from your release version.
__________________
My
Fremantle
projects: InternetRadioPlayer, QRadio, InternetRadioWidget, AutoRemoveSms, PSAutoLock, TodoListWidget, MediaPlayerWidget
My
Harmattan
projects: InternetRadioPlayer,
QMLRadio
,
SigmaPlayer
, WidgetCanvas, NotesExporter,
3DTris
,
NoStopPlayer
, NotesImporter
Last edited by gionni88; 2012-07-01 at
07:15
.
Quote & Reply
|
The Following User Says Thank You to gionni88 For This Useful Post:
sony123
gionni88
View Public Profile
Send a private message to gionni88
Find all posts by gionni88