...
The qsetverticalheaderlabel command sets the header text for a given row in a qtablewidget.
To set a column header use qsethorizontalheaderlabel.
Arguments
tablewidget
An instance of qtablewidget. If this argument is not provided the current widget is used, assuming it is a table widget.
...