def headerData(self, section, orientation, role):
"""Return the data for the given role and section in the header
with the specified orientation.
"""
if orientation == Qt.Horizontal and role == Qt.DisplayRole:
return self.header[section]
评论列表
文章目录