Dear all, After successfully enabling drag from a QAbstractListModel, I am trying to do the same with a tree model.
Here is what I did: //In constructor: setSupportedDragActions(Qt::CopyAction); //Qt::ItemFlags Model::flags(const QModelIndex & index) implementation return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled; I also implemented mimeData() , but it gets never called anyway. Dragging is not triggered, and items are only selected. I do not know what to do for enabling drag support? It works well with QAbstractListModel Thanks, Etienne
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest