I don't see any vertical header, but maybe you mean the first column/section of the horizontal header?

You could try calling QHeaderView::setSectionResizeMode() for section 0.

Cheers,
_