TreeItem.hasChildren

returns true if item has at least one child

class TreeItem
@property
bool
hasChildren
()

Meta