September 22, 2011

lexan lexan
Lab Rat
68 posts

[SOLVED]Flickable Control question

 

can i control the fluidity and smoothness of Flickables? I mean can I drag Flickable item at a certain point and stop? and drag it again to the next frame? i’ll be using it on my comic strip.. how can i do it?

3 replies

September 23, 2011

mbrasser mbrasser
Ant Farmer
452 posts

Hi,

Have you seen the visualitemmodel example that comes with Qt (in the modelviews subfolder of the declarative examples)? From your description I think it will be quite close to the behavior you are looking for.

Regards,
Michael

September 26, 2011

sriks sriks
Lab Rat
122 posts

If your are looking like homescreen kind of behavior (like a flick would get one homescreen at a time) try these properties in your ListView (assuming the fickable view your are using is a listview)

  1.          highlightRangeMode: ListView.StrictlyEnforceRange
  2.          highlightFollowsCurrentItem: true;
  3.          snapMode: ListView.SnapOneItem

September 26, 2011

Alicemirror Alicemirror
Lab Rat
825 posts

I agree, I have used this method somewhere in an application with good results. Not rememebr now where … But I need to reuse this in a application I am working on so I can provide and example further if needed.

 Signature 

Enrico Miglino (aka Alicemirror)
Tech Consulting
Islas Baleares, Ibiza (Spain)
http://www.contesti.eu

 
  ‹‹ Howto get the QtMultimediaKit video element running in Qt QML?      [Bug] Binding from an instance of the delegate’s repeater to another instance of it ››

You must log in to post a reply. Not a member yet? Register here!