code: def headerData(self, section, orientation, role=Qt.DisplayRole):
          
          if role != Qt.DisplayRole:
              return to_qvariant()
          i_column = int(section)
          if orientation == Qt.Horizontal:
              headers = (self.header0, _("Type"), _("Size"), _("Value"))
              return to_qvariant( headers[i_column] )
          else:
              return to_qvariant()
docs: Overriding method headerData