I presume they are just normal checkboxes?
Just create a stylesheet for checkboxes and apply it to the treeview
QCheckBox::indicator:unchecked
{
color:rgb(255,0,0);
}
QCheckBox::indicator:checked
{
color:rgb(0,0,255);
}
or if you want to make one global stylesheet and not affect any other checkboxes use the child selector (all the checkboxes need to be a direct child of the QTreeView else use a space instead of > )
QTreeView > QCheckBox::indicator:unchecked
{}
QTreeView > QCheckBox::indicator:checked
{}
Bookmarks