uniquenamehere
uniquenamehere

Reputation: 1949

Making a wheel in QML using a flickable ListView

I have created a flickable ListView that snaps to a value. The problem is I can not figure out how to make it snap in the middle of the view in stead of the top. Is there any way to offset the place to snap or some other way to solve this?

Currently it looks like this (where 14 is the snapped value):

enter image description here

but I want it to look like this, where 14 is the snapped value (I faked the view I want by dragging the wheel with the mouse):

enter image description here

Upvotes: 2

Views: 540

Answers (1)

QtRoS
QtRoS

Reputation: 1177

Take a look at highlightRangeMode property of ListView.

Upvotes: 2

Related Questions