Is possible to set stylesheet for checkable items in QTreeView.
QTreeView::item:checked, QCheckBox::indicator:checked are not working:-(
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);
}
Snix (10th December 2013)
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.
lengshuang (26th April 2009)
Bookmarks