W
Size: a a a
W
W
GS
м
AU
NM
B
NM
NM
def headerData(self, section, orientation, role=Qt.DisplayRole):
if role == Qt.DisplayRole and orientation == Qt.Horizontal:
return self.headerLabels[section]
return QAbstractTableModel.headerData(self, section, orientation, role)
NM
def columnCount(self, parent=QModelIndex):
try:
column_count = len(self.tableData[0])
return column_count
except:
return 0
NM