Re: [Interest] Cannot enable dragging from QAbstractItemModel

2013-10-02 Thread Etienne Sandré-Chardonnal
Thanks, this worked! So this came from the view and not the model... 2013/10/2 Alex Malyushytskyy > Did you try to set setDragDropMode of the tree view to > QAbstractItemView::DragDrop? > QAbstractItemView::InternalMove accepts only move operation from itself > and does not accept copy. > > Reg

Re: [Interest] Cannot enable dragging from QAbstractItemModel

2013-10-01 Thread Alex Malyushytskyy
Did you try to set setDragDropMode of the tree view to QAbstractItemView::DragDrop? QAbstractItemView::InternalMove accepts only move operation from itself and does not accept copy. Regards, Alex On Tue, Oct 1, 2013 at 3:33 PM, Etienne Sandré-Chardonnal < etienne.san...@m4x.org> wrote: > D

[Interest] Cannot enable dragging from QAbstractItemModel

2013-10-01 Thread Etienne Sandré-Chardonnal
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 | Q