def headerData(self, section, orientation, role):
if orientation == Qt.Horizontal and role == Qt.DisplayRole:
if section == 0:
return "Name"
if section == 1:
return "Attributes"
if section == 2:
return "Value"
return None
评论列表
文章目录