PDA

View Full Version : Drag and Drop from QListView to QGraphicsView



NoRulez
20th August 2009, 15:26
Hey @all,

i want to drag an item from a QListView to the QGraphicsView and draw different symbol according to the item.
So, I've overloaded the QGraphicsView and reimplemted the drag... functions.
My Problem now is, how can i get the data out of the QDropEvent?

Because the event->text() is always empty, but the event->mimeData()->formats() shows me "application/x-qabstractitemmodeldatalist".

On the QListView I use a QStandardItemModel.

Thanks in advance
Best Regards
NoRulez