How do you place row labels (VerticalHeaderLabels) on RHS of QTableWidget?
-
Row labels for a QTableWidget always seem to go on left side of the table (e.g. calling setVerticalHeaderLabels). Is there some way to set them on right hand side instead? I would have thought setVerticalHeaderLabels would have a second argument for an enum to specify placement.
-
@neuralgen said in How do you place row labels (VerticalHeaderLabels) on RHS of QTableWidget?:
I would have thought setVerticalHeaderLabels would have a second argument for an enum to specify placement.
That's impossible as
setVerticalHeaderLabels
is a method of the model which has no idea how the data it holds is displayed.Shooting in the dark here but see if
verticalHeader()->setOffset(100)
has any effect -
Hi and welcome to devnet,
Why do you want to put them on the right side ?
-