Gang:

I have a QTableView which uses a custom
model based on QAbstractItemModel.
The model sets the Qt::ItemIsUserCheckable flag
for one of the columns and the model data()
function responds to the Qt::CheckStateRole
for the same column. The result is a working
check box in the corresponding column of the
table view.

            This is all good.

My problem is that the check box is presented
flush left in the column and I would like
it to be centered. The closest I could find was
Qt::TextAlignmentRole which didn't sound right
or have any affect.

Any help would be appreciated.

Thanks.

Bill

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to