Hi,
is there a way in qt4 to merge/join table cells?
Thanks.
Hi,
is there a way in qt4 to merge/join table cells?
Thanks.
AFAIK it is planned but not available yet (see QAbstractItemModel::span()).
Thanks for the info - Is there a way of changing the border color for the table cells so that I can simulate merged cells?
Thanks.
You can turn off grid drawing in the table and draw the grid using delegates/tablewidgetitems.
I see "bool showGrid () const" to control the grid but, it's not quite clear to me how to draw the lines per cell using QItemDelegate. Do you have by any chance an example?
Thanks a lot.
Never mind - I found a similar thread http://www.qtcentre.org/forum/f-qt-p...able-1215.html
I will try that first.
Thanks again for all the help.
An example... hmm... You can look at model-view examples (custom delegate) bundled with Qt. A quickstart is to inherit QItemDelegate and reimplement its paint() method and draw a frame you need around the cell before calling QItemDelegate::paint() to do the rest.
Bookmarks