Hi,

The positionViewAtIndex function 
(http://doc.qt.nokia.com/4.7/qml-listview.html#positionViewAtIndex-method) 
should allow you to move to an index without loading all prior items.

Regards,
Michael

On 19/03/2011, at 4:42 PM, ext amit shah wrote:

> Hi,
>  I have a grid view with 10 elements and a listview with 1 element. Both the 
> views are driven by the same model. 
> The List view is  not  visible. When a element is clicked on the gridview the 
> listview is scrolled to the viewport . 
> The list view is also scrollable displays the next and previous data 
> vertically. 
> 
> I just assign the currentIndex of the grid to the listview's currentIndex.  
> It works but there is a issue, if there are 100 items in the
> gridview and I select the 99th one , the gridView index is assigned to 
> listView and what I observe is the listview loads all the 98 
> before displaying the 99th one.  My listview delegate is a liitle complex as 
> it has a lot of data to display hence takes a lot of time to display.
> 
> Is there anyway I can instruct the listview to load the selected instead 
> loading all and before displaying the chosen one.
> 
> 
> thanks
> --amit
> 
> <ATT00001..txt>

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to