Is possible to set stylesheet for checkable items in QTreeView.
QTreeView::item:checked, QCheckBox::indicator:checked are not working:-(
Printable View
Is possible to set stylesheet for checkable items in QTreeView.
QTreeView::item:checked, QCheckBox::indicator:checked are not working:-(
Just like you would a QCheckBox only with a QTreeView
QTreeView::indicator:checked {
image: url(path);
}
QTreeView::indicator:unchecked {
image: url(path);
}
u dont have to insert QCheckbox as a whole into QTreeView, just set the path to image for checked and unchecked states of the checkbox..these images can be any image u want..just follow what chezifresh wrote.