[email protected] wrote:

>> know whether a particular item hasChildren()
> 
> Isn't this count>0? (it would be a little more efficient though if we had
> an isEmpty or hasChildren)

Nope. count is the number of items in a list. What I'm looking for is the 
number of children of a particular item in the list.

The thing is the qml ListView has a QAbstractItemModel in it which is 
actually a tree. 

If you click on an item that has children, another part of the application 
should show the children. There needs to be some visual indication that a 
item in the list has children.

In QTreeView, that's a [+] which you can click to expand.

Steve.

> 
> --
> Warwick

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

Reply via email to