Hi,
I'm working on an instant messenger application.
I have a class Contact subclassing QTreeWidgetItem and a class with a QTreeWidget attributes. I want to add a Contact in the QTreeWidget with the method addTopLevelItem ( QTreeWidgetItem * item ) ! But when I make that, no contact appears in the QTreeWidget!
So what can I do to paint the contacts?
Is it the good way? Maybe I can use the model-view-controller ! But in this case I don't know how to use my data with the model (in trolltech examples data are only QString whereas my data are Contact)!
Thanks for your help....
Bookmarks