I've a QTableView.
Is there a way to align to the centre, all the cell contents of this view?
I'm not using any delegate. It's just an AbstractTableModel
which is added as a model to a QTableView
.
How should I align each cell content to the centre?
Thanks.
Qt::AlignCenter
is defined asQt::AlignHCenter | Qt::AlignVCenter
. The second one is not needed. – Barthold