title: QTableView change row color based on a value
body: <p>I have a <code>QTableView</code> that I implemented with my own model subclassed from <code>QAbstractTableModel</code>.  I want to be able to change the row color to red when one of the fields in the row has a certain value.  I saw a lot of examples where the answer is to call the models <code>setData</code> and use <code>Qt::BackgroundRole</code> to change the background color.  Since I subclassed the <code>AbstractTableModel</code> I reimplemented <code>setData</code> and <code>data</code> so calling models <code>setData</code> does nothing with the background color role since I'm only handling data whose role is <code>Qt::DisplayRole</code>.  </p>
  
  <p>I guess my first question is : Is there an easier way to change the color of the entire role?  If not, I'm guessing I have to implement that part in <code>setData</code> and <code>data</code> to handle the <code>BackgroundRole</code> which I have no idea how to do so if anyone has examples on how to do this it would really help a lot...</p>