def setHeaderData (self, int, Orientation , Header: list, role: int = Qt.ItemDataRole.EditRole):
self.header = Header
def headerData(self, section, orientation, role):
if role == QtCore.Qt.DisplayRole:
if orientation == QtCore.Qt.Horizontal:
return self.header[section]
if orientation == QtCore.Qt.Vertical:
return str("List ") + str(section)