PDA

View Full Version : aligment of Checkboxes Items within QTableView



kerim
6th May 2011, 10:40
hi,
for a custom table-model that should contain CheckBoxes within a specific column i
have implemented the data(..) method to check for the Qt::CheckStateRole.

The problem is that i see that these are always aligned to the left within the table-cell.
how do i align these to the center without having to implement my own delegate !?!

thnx alot.

wysota
6th May 2011, 13:17
You can't do that without a custom delegate.