Hi,

I've found this: https://forum.qt.io/topic/76265/set-...-in-qtableview
I have copied the setRowColor() from the link above into my code base call it like:
Qt Code:
  1. void Widget::on_HostList_doubleClicked(const QModelIndex &index)
  2. {
  3. QAbstractItemModel *model = ui->HostList->model();
  4. setRowColor(model,index.row(),Qt::red,index);
  5. }
To copy to clipboard, switch view to plain text mode 
but it does not seem to work, the color is not changing. Can someone help me here?