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

Martin Jones martin.jones at nokia.com
Fri Aug 20 01:05:02 CEST 2010


On Fri, 20 Aug 2010 08:41:25 am ext Bartosh Wroblevksy wrote:
> 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.

No you can't do this ;-)

> 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.

What do you want the list to look like?  Is it feasible to size the list to be 
two items high and turn off "interactive"?

-- 
Martin



More information about the Qt-qml mailing list