title: How to color a PyQt QTabwidget
body: <p>I have a PyQt main window that contains a QTabWidget.  The tab widget contains a few buttons and text boxes.</p>
  
  <p>I'd like to color the entire tab background not just the tabs that stick up in the tab bar area.</p>
  
  <p>I'm not using style sheets and would prefer to use a palette since I'm already using palettes, but if style sheets are the only option, that's ok.</p>
  
  <p>I've tried:</p>
  
  <pre><code>p = self.tabWidget.palette()
  p.setColor(self.tabWidget.backgroundRole(), Qt.red)
  self.tabWidget.setPalette(p)
  </code></pre>
  
  <p>This produces a red tab bar area, but the main background is still white.</p>
  
  <p>Turning off autofill, with 
      self.tabWidget.setAutoFillBackground(False) 
  makes a slight difference, the individual tabs are now nicely colored but the main body is still white.</p>
  
  <p>Trying a little style sheet:</p>
  
  <pre><code>self.tabWidget.setStyleSheet("QWidget {background-color: yellow }")
  </code></pre>
  
  <p>This colors the main body of the tab, however it also colors everything else yellow including the buttons and text boxes. Also, all the little tabs that stick up are all yellow.  Autofill did not have any affect.</p>
  
  <p>Any ideas on how to color the body of the tab but not wipe out the other widgets?</p>
  
  <p>I'm using PyQt version 4.10 and Python 2.7.</p>