in general you can use Qt::BackgroundRole, but if you use QStandardItemMode & QStandardItem then you can use this method QStandardItem::setBackground or you also can create your own delegate and reimplement QItemDelegate::drawBackground.