PDA

View Full Version : QStandardItemModel alignment



Pembar
10th July 2009, 13:25
Hello,

I tried looking through the documentation but I could not find anything regarding the alignment within each cell. But is it possible to center the data in each cell?

The QStandardItemModel is eventually passed in to a few QItemSelectionModel.

Thanks

Regards,
Pembar

wysota
10th July 2009, 16:07
See Qt::AlignmentRole or QStandardItem::setTextAlignment().