Thank you, so I am now able to highlight several "selected" Rows constantly out of the model:

Qt Code:
  1. if( role == Qt::ForegroundRole ) {
  2. if(myElementDataContainer.at(index.row).isSelected())
  3. return QBrush(QColor(0, 0, 255)); //blue
  4. }
To copy to clipboard, switch view to plain text mode