code: def headerData(self, section, orientation, role=Qt.DisplayRole):
          
          if role == Qt.TextAlignmentRole:
              if orientation == Qt.Horizontal:
                  return to_qvariant(int(Qt.AlignHCenter | Qt.AlignVCenter))
              return to_qvariant(int(Qt.AlignRight | Qt.AlignVCenter))
          if role != Qt.DisplayRole:
              return to_qvariant()
          if orientation == Qt.Horizontal:
              if section == LANGUAGE:
                  return to_qvariant(_("Language"))
              elif section == ADDR:
                  return to_qvariant(_("Address"))
              elif section == CMD:
                  return to_qvariant(_("Command to execute"))
          return to_qvariant()
docs: Qt Override.