[Interest] How to center the check box.

william.crocker at analog.com william.crocker at analog.com
Sun Dec 29 16:12:09 CET 2013

>> 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.
> There is no easy way to make the check box appear aligned differently.
> The only way I know of, is to create your own delegate and do the
> rendering yourself (using QStyle to do the hard work, of course).

I investigated that briefly, but isn't it true that I would
have consistently handle both the paint and edit. (I can't draw
it in the center if the edit code still thinks it is aligned
to the left.)

> André
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

More information about the Interest mailing list