I've gotten some checkboxes displayed in a QTreeView, which has a model that is a subclass of QAbstractItemModel. The checkboxes show up fine for the column I want them to, but I would like to have the checkboxes unly become checked/unchecked when the user clicks on the checkbox itself. At the moment, the checkbox recieves click events when the user clicks in the column/row the checkbox is in. So the user only has to click on a row in column 0 in order for the checkbox to be toggled. how can I get Qt to check if the checkbox itself has been clicked?