[PyQt] Item view checkbox custom background color

Brogan Ross broganross at gmail.com
Wed Feb 5 07:00:36 GMT 2014


Hey everyone,
  I did a quick search for this but haven't found an answer yet, so I bring
it to you.  I've got a tree view with a column that displays a checkbox for
some boolean values.  I'm using the CheckStateRole in the tree model's data
method.  And I'm setting up a style sheet and QStyle for the application,
but I can't seem to set the background color of the checkboxes, when they
are on, within the tree view.  Has anyone ever done this successfully?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140204/2192bd08/attachment.html>


More information about the PyQt mailing list