I'm having some "newbie" problems with the model/view programming. I
have been searching around for a solution for some time but can't find
I have created a model by sub classing QAbstractItemModel. I'm using
QTreeView to display the model.
I want to edit the items in the QTreeView. As fare as I know the
QTreeView has a default delegate. I'm playing around with variations of
the following code:
but nothing is working.
I have another QTreeView (using the same model). Here I want the
QTreeView to display checkboxes.
The only clue I have is that the QTreeWidgetItem has a setFlags function
where one of the flags are Qt::ItemIsUserCheckable. I have not found
anything similar in the model/view classes.
A explanation of what I doing wrong or a pointer to where I can find a
example would be of great help.
Thanks in advance.
Ole Morten GrodÃs