[Qt-interest] Custom table grid
Murphy, Sean M.
sean.murphy at gd-ais.com
Wed Feb 10 21:07:31 CET 2010
I'm trying to create custom grid lines on a table (QTableWidget), and
I'm not sure if I'm missing something obvious or what.
What I've got a table with 16 columns that are all evenly sized, fixed
width. I want to have a vertical grid line breaking those 16 columns in
four groups of 4 columns each. So it would look like:
Column#: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16
Cell Decoration: | | | | |
So there are to be NO horizontal grid lines, and only a vertical grid
line every 4th column. The only way I can see to do this currently is
to inherit from QTableWidget, and override paintEvent() and only paint
the vertical grid line on the columns I want painted?
Sean
More information about the Qt-interest-old
mailing list