?? wrote:
> I have set the QTreeView as follows:
>        ui.treeView.setDragEnabled(true);
>        ui.treeView.viewport().setAcceptDrops(true);
>        ui.treeView.setDropIndicatorShown(true);
>        
> ui.treeView.setDragDropMode(QAbstractItemView.DragDropMode.InternalMove);
>  
> Then what else need to be done with the QTreeModel, which is used as the 
> tree model???
> Can you tell me some details? An example will be better. I just want to 
> implement the item's moving from one parent item to another item.
> Thanks.

Hi,

The QTreeModel doesn't support drag and drop that well. I've made a task 
for 4.5 to look into improvements here, but you're stuck with the 
approaches outlined in

http://doc.trolltech.com/qtjambi-4.4/html/com/trolltech/qt/model-view-dnd.html

for now.

Sorry for the inconvenience,
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to