Hi,

Pardon my ignorance and before some one might get into a rant, I did exhaustively search the forum to find answer but still cannot get this work. So please help me out here, experts.

I am trying to create a tree view with checkbox enclosed using the "Simple Tree Model Example" in the Model/View Programming page. However, I cannot get the checkbox to work. I followed the advice on this forum and make the TreeModel::flags() method return Qt::ItemIsUserCheckable but get stuck at the getData part. Some people suggests that using this method can make the checkboxes check, uncheck. However, I have no clue on how to do that after reading up and down all posts.

Could you explain on how to do this please?

Thank you