title: Color of selected rows in PyQt
body: <p>I want to change color of selected rows in QTableWidget using python.
  <a href="http://postimg.org/image/iyxb0wm4r/" rel="nofollow">http://postimg.org/image/iyxb0wm4r/</a>
  I want that green part to be red.</p>
  
  <p>If i try:</p>
  
  <pre><code>table = self.my_table
  palette = QtGui.QPalette(table.palette())
  palette.setColor(QtGui.QPalette.Highlight, Qt.red)
  table.setPalette(palette)
  </code></pre>
  
  <p>it producies next picture. I need to double click, so the selected text is red.</p>
  
  <p><a href="http://postimg.org/image/rtc06mlil/" rel="nofollow">http://postimg.org/image/rtc06mlil/</a></p>
  
  <p>If I try:</p>
  
  <pre><code>  table = self.my_table
    table.setAutoFillBackground(True)
    p = table.palette()
    p.setColor(table.backgroundRole(), Qt.red)
    table.setPalette(p)
  </code></pre>
  
  <p>it does this: (I can't post images and I can post only two links!) I try to put the link in comment. Anyway, it just set the color of grid to red.</p>