[Qt-qml] limiting the size of a list in QML

Bartosh Wroblevksy bartosh at live.com
Fri Aug 20 00:41:25 CEST 2010


Hi,

I am more and more enjoying QML. I am writing here as a last resort. A "no you can't do this" answer will suit me fine. I was wondering if there is an easy way to limit the count of a listView regardless of the number of items in the data model.

So as an example, I have a model data of 100 items, but just want to display the first two in a qml list view. 

Thanks,
Bartosh
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100819/c3eb404e/attachment.html 


More information about the Qt-qml mailing list