Editable Tree Model Example and a QTreeView using icons
Hi,
I'm using Qt 4.6 and I've inherited some classes (TreeItem TreeModel) declared in:
http://doc.trolltech.com/4.6/itemvie...treemodel.html
The question is: how can I visualize icons using a QTreeView and the model described above?
Thanks in advance!
xael
Re: Editable Tree Model Example and a QTreeView using icons
Return icon for Qt:: DecorationRole from the model's data function.
Re: Editable Tree Model Example and a QTreeView using icons
Thanks for your answer ! I solved the problem and I made a step forward in understanding the Qt implementation of the MVC pattern
xael