TreeItem.childCount

int childCount() const

Gets the number of children.