PDA

View Full Version : QTreeWidget disable children



hlvietlong
19th June 2009, 21:30
Hi guys,

I'm dragging items from a QListWidget to a QTreeWidget and I'm trying to get the QTreeWidgetItem to not accept children (the tree widget only has top level items) and I have no idea how to do this. Can u guys give me some hints on this?

Thanks a lot.

wysota
20th June 2009, 02:34
Make sure ItemIsDropEnabled flag is disabled for all the items.