A particular cell in a QTableView? QTableView already supports cell spanning (see QTableView::setSpan()), are you sure you need to fake it.
The background colour for a cell comes, by default, from the data the model returns for the Qt::BackgroundRole. It can be manipulated by a delegate attached to the view.
Bookmarks