Quote Originally Posted by jwieland View Post
Pardon my ignorance, but I've been trying to do the same thing: implement a treeview with checkboxes and so far cannot get it to work. Could you elaborate more on how to use the Qt::ChectStateRole to achieve this?
You have to make your model aware of that role. So you have to make it store it somewhere and return data for it when asked from within the data() method. You also need to modify the flags returned by the model for items you wish checkable so that they return ItemIsUserCheckable.