PDA

View Full Version : Group or Set widget (image provided)



jeanremi
5th August 2011, 23:17
Hi

I would like to create a "group or set" widget, which will allow a user to group/ungroup layers as seen in the attached picture.

I have done the layers using a custom tableview (in a test project), but I'm not sure how to do the grouping widget.

Could somebody guide me as to how grouping/ungrouping can be achieved?

(Image attached)

Many thanks

Jean
6747

Lykurg
5th August 2011, 23:39
I would go for a tree model. To group items make them children of an item.

jeanremi
6th August 2011, 12:05
Haha, it's funny, I completely forgot about tree containers!
QTreeWidget is exactly what I needed :-)
Thank you very much Lykurg.

It's solved.