In QTableView with StandardItemModel, is there a simple way to set alignment of an whole column ?
Thanks...
In QTableView with StandardItemModel, is there a simple way to set alignment of an whole column ?
Thanks...
By default the Qt::TextAlignmentRole of each item is honoured. You could set this on the items in your model. Alternatively, you could use a custom delegate to do something different with the painting of items in that column.
Bookmarks