07-24-2014 02:07 PM
if I want to use qml to make a slot machine.
How to make a wheel like this:
use a custom picker?
Or a listview?
if use listview, how to let it roll Automatically?
Thanks for your kindly reply!
07-24-2014 02:56 PM
07-25-2014 12:31 AM - edited 07-25-2014 12:37 AM
I want to create a list and let its item roll
Ex: I have a list contains
I want the whell can show like
A B C
B > C > D >
C D A
And I can update the list.
Can this be made by animation?
07-25-2014 01:21 PM
what I do now is
first define five image view
and use stack layout and its height is 3Y
imageView 1 is invisible
2,3,4 and 5 is visible
image view 1 load item1 and image view load item 2 , etc..
image view 1's y position is -Y
image view 2's y position is 0
image view 3's y position is Y
4's is 2Y
5's is 3Y
then use transition Y move all image views up Y/2 and judge if the y position reach -Y or -2Y
if reach -2Y -> move to 3Y, visible = true and load next item in the list
if reach -Y -> visible = false
but in this way I must check each image view's y position in every microsecond.
and will do a lot of "if" statement, which will make the device become hotter.
It seems is not a good slouction.