[Qt-interest] simple tree model example
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Mon May 24 10:36:12 CEST 2010
> Using QAIM also gives you scope to do some other tricks, but if neither of
> those things above are a concern to you, QStandardItemModel is probably the
> right choice. You still have the advantages of being able to represent
> custom data objects (QStandardItem::data is virtual) and being able to use
> proxy models.
>
> This is also discussed in an article I have drafted and hope to finish soon.
> Taster: 'Compromise' :)
Thanks Stephen. I'll be waiting for that article of yours! :)
Regards,
-mandeep
>
>>>
>>> I have used QStandardItemModel populated with my tree data and applied
>>> a QTreeView to it and everything has worked fine till now.
>>>
>>> Just wondering why, in the simple tree model example, they used the
>>> QAbstractItermModel as base and not QStandardItemModel. The model-view
>>> programming guide states:
>>>
>>> "QStandardItemModel manages more complex tree structures of items,
>>> each of which can contain arbitrary data."
>>>
>>> Hence my confusion.
>>>
>>> Thanks,
>>> -mandeep
>>>
>>> PS: BTW one OT question - who are "Trolls"? ppl who work on QT itself?
>>> or anybody who uses QT, like app devs? Just curious. :)
>
> Trolltech used to be the company that produces Qt. Nokia bought Trolltech 2
> (?) years ago. Before that people who worked there were called 'The Trolls'.
> People who were around before that still call former Trolltech employees by
> that label sometimes.
>
>
> All the best,
>
> Steve.
>
>>>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list