PDA

View Full Version : Hi,



stef13013
22nd September 2010, 00:11
In QTableView with StandardItemModel, is there a simple way to set alignment of an whole column ?


Thanks...

ChrisW67
22nd September 2010, 05:30
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.