PDA

View Full Version : Question related Drag and drop of listview items



ada10
21st October 2010, 06:14
I have a listview of pixmaps which has the setDragEnabled property set to true. I am using a custom model & model data to add pixmaps to the listview.
When a pixmap is dragged from the list view, a string is set as the mime data for it ( this is done in the model ).
I would like to set this pixmap as the drag indicator ( instead of the default drag indicator shown ), when I am dragging the pixmap from the list view, but would like to keep the mime data as it is ( as a string ). How to achieve this ??

PS: The listview does not give the flexibility to return a QDrag object when I am using its drag-drop property