[Interest] How to center the check box.
william.crocker at analog.com
william.crocker at analog.com
Sun Dec 29 15:25:36 CET 2013
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
More information about the Interest
mailing list