title: Change text color of QCheckBox in pyqt
body: <p>I want to change the color of the text next to a <code>QCheckBox</code>.
  I have tried these 2 questions:</p>
  
  <p><a href="https://stackoverflow.com/questions/11153945/how-to-change-qcheckbox-text-label-color-in-qt">how to change QCheckBox text label color in Qt?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/22761517/changing-qcheckbox-text-color?lq=1">Changing QCheckBox text color</a></p>
  
  <p>None of those solutions seem to be working for me.</p>
  
  <pre><code>p = QtGui.QPalette(self.chkbox[i].palette())
  p.setColor(QPalette.Active,QPalette.WindowText, QtCore.Qt.red)
  self.top_grid.addWidget(self.chkbox[i],i+2,0)
  </code></pre>
  
  <p><strong>Edit 1:</strong> Here is the minimal working code:</p>
  
  <pre><code>from PyQt4 import QtGui, QtCore
  import sys
  
  def main():
      app = QtGui.QApplication(sys.argv)
      w = QtGui.QWidget()
      top_grid = QtGui.QGridLayout()
      chkbox=[]
      chkbox.append(QtGui.QCheckBox('1'))
      chkbox[0].setStyleSheet("color: red")
      chkbox[0].setToolTip('&lt;b&gt;ABC&lt;/b&gt;' )
      top_grid.addWidget(chkbox[0],0,0)
      w.setLayout(top_grid)    
      w.show()
      sys.exit(app.exec_())
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>When I do this, the color of the <code>ToolTip</code> changes to red, but the text next to the checkbox remains black.</p>
  
  <p><strong>Edit 2:</strong> If I add the line</p>
  
  <pre><code>app.setStyle('cleanlooks')
  </code></pre>
  
  <p>It works. The default style is <code>sgi</code>, where, for some reason, the text color doesn't change. It worked with all the other styles.</p>