I have a QTreeView with checkboxes on some items. Right now, my view can toggle the state of the checkbox in the model using the QAbstractItemView::clicked ( const QModelIndex & index ) signal. However, I would like to only toggle the state if the user is actually clicking within the checkbox region of the item, not simply anwhere within the whole item. Is there a reliable way to know where within the item the user is clicking? It seems like fairly standard UI functionality to only have the checkbox toggle when you are clicking within it.

Colby