Function TreeItem.childCount

returns number of children of this widget

int childCount() @property;