I've tried this (without success):
Qt Code:
ui->tableView->model()->setData(ui->tableView->model()->index(5, 5, QModelIndex()), QVariant(QColor(Qt::red)), Qt::DecorationRole);To copy to clipboard, switch view to plain text mode
Thanks in advance.
Bookmarks