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.
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.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks