In qml GridView,which property will influence scroll speed?
-
wrote on 6 Jul 2011, 00:27 last edited by
hi everyone! i use QML GridView write a application program on cellphone,but when i drag the screen,it scrolls very slow,so i want to ask you which property will influence scroll speed in GridView?thank you very much!
-
wrote on 6 Jul 2011, 05:29 last edited by
you can use the listview .and set the contentX or contentY dirently when drag event accurs
-
wrote on 6 Jul 2011, 06:05 last edited by
Take a look at "horizontalVelocity and verticalVelocity":http://doc.trolltech.com/4.7-snapshot/qml-flickable.html#horizontalVelocity-prop
-
wrote on 6 Jul 2011, 07:08 last edited by
but this horizontalVelocity and verticalVelocity propertise is just
read-only,we cann't assign to it! -
wrote on 6 Jul 2011, 07:32 last edited by
Ohh, I
m sorry. I didn
t see the read-only flag :(There is also maximumFlickVelocity property. It is not read-only. May it will help :)
-
wrote on 6 Jul 2011, 07:33 last edited by
"GridView.maximumFlickVelocity":http://doc.qt.nokia.com/4.7-snapshot/qml-flickable.html#maximumFlickVelocity-prop
-
wrote on 7 Jul 2011, 03:49 last edited by
but why it also slow,it seems have not change!
-
wrote on 7 Jul 2011, 05:54 last edited by
Have you tried building a Desktop version of your application?
If velocity does not change it is most likely a software problem.
If velocity changes it is most likely a hardware problem (limited resources). -
wrote on 7 Jul 2011, 08:06 last edited by
i did a test,when i just use a ListView,the speed is ok,but when i use two views which are GridView and ListView,it response very slow,so how to solve this problem?
-
wrote on 8 Jul 2011, 11:10 last edited by
You can use cacheBuffer to cache some delegates outside visible area.That can help in smooth scrolling.
How complex is your grid delegate ? Simpler the delegate better will be scrolling.
6/10