def rowCount(self, parent: QModelIndex=...):
    if (parent.column() > 0):
        return 0
    if (not parent.isValid()):
        parentItem = self.mRootItem
    else:
        parentItem = parent.internalPointer()
    return parentItem.childCount()
def rowCount(self, parent: QModelIndex=...):
    if (parent.column() > 0):
        return 0
    if (not parent.isValid()):
        parentItem = self.mRootItem
    else:
        parentItem = parent.internalPointer()
    return parentItem.childCount()