Hi,
I'm adding data in a TreeView Model. The data are of a type created by me.
The question is:
The elements of the Model must be ALL the same type???
Or is there also the possibility to insert different Types of data?
Thanks,
Alex
Hi,
I'm adding data in a TreeView Model. The data are of a type created by me.
The question is:
The elements of the Model must be ALL the same type???
Or is there also the possibility to insert different Types of data?
Thanks,
Alex
you can keep different type. you can declare type by using Q_DECLARE_METATYPE, in this case you can store your data in QVariant.
Qt Assistant -- rocks!
please, use tags [CODE] & [/CODE].
Bookmarks