[Qt-qml] Circular ListView

Rakesh.Mutharaju at tieto.com Rakesh.Mutharaju at tieto.com
Wed May 19 08:42:41 CEST 2010


Hello,

        Is it possible to have the List of elements circularly connected.

ListView::positionViewAtIndex ( int<http://doc.trolltech.com/4.7-snapshot/qml-int.html> index, PositionMode mode )

Positions the view such that the index is at the position specified by mode:

*       Beginning - position item at the top (or left for horizontal orientation) of the view.
*       Center- position item in the center of the view.
*       End - position item at bottom (or right for horizontal orientation) of the view.
*       Visible - if any part of the item is visible then take no action, otherwise bring the item into view.
*       Contain - ensure the entire item is visible. If the item is larger than the view the item is positioned at the top (or left for horizontal orientation) of the view.

If positioning the view at the index would cause empty space to be displayed at the beginning or end of the view, the view will be positioned at the boundary.


Well, I would like to positionViewAtIndex (0,Center) and i want the items at the end of the list filling up the space above instead of adjusting the boundary. Can this be supported ?

Or instead if I use a Row or Column still the manual calculation of positions is required at user level?


Thanks and Regards,
Rakesh


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100519/4c84de6a/attachment.html 


More information about the Qt-qml mailing list