void QItemDelegate::paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const [virtual]
QAbstractItemModel::setData(index, QColor(Qt::red), Qt::BackgroundRole);QAbstractItemModel::setData(index, QColor(Qt::green), Qt::ForegroundRole);