moijhd
12th November 2013, 10:27
Hi,
I have a class MyObject and a class MyObjectContainer.
An object container contains a list of MyObject objects.
Each MyObject owns a QStandardItemModel.
The MyObjectContainer owns a QStandardItemModel.
I want to create a tree view where I insert the model of MyObject in the model of MyObjectContainer.
I tried to copy node, to play with invisibleRootNode...I did not success.
Thanks,
I have a class MyObject and a class MyObjectContainer.
An object container contains a list of MyObject objects.
Each MyObject owns a QStandardItemModel.
The MyObjectContainer owns a QStandardItemModel.
I want to create a tree view where I insert the model of MyObject in the model of MyObjectContainer.
I tried to copy node, to play with invisibleRootNode...I did not success.
Thanks,