[Qt-qml] how to show a list of images with flip animation

Gianni Valdambrini aleister at develer.com
Wed Apr 7 19:00:07 CEST 2010


Hi,
I have to read the content of a directory of images and display them one 
by one using an horizontal flip animation (hopefully using the Flipable 
element).

I tried various approaches without success:
- passing the QStringList containing the list of images as a property of 
the qml context and using them through ListView. Unfortunately the 
ListView is a Flickable element and I can't find a way to customize the 
animation.
- passing the QStringList as a property as above and traverse it, using 
Javascript. I found that only the ListModel can be traversed using the 
get() method.
- passing a single image as a property of the qml context and trigger 
the change of the property. I can't find how to do "some things" that 
are more than an animation when the property changes.

It seems to me that I miss something, maybe there is another approach 
that is the right one.
Any help is appreciated.

Thank you,
Gianni



More information about the Qt-qml mailing list