PDA

View Full Version : Drag and drop between 2 graphics views



mikey
19th December 2009, 19:32
Hi,

In my app (a board game) I have the board as a graphicsview and have graphics items on another graphicsview all contained in a qwidget. I'd like to be able to drag and drop items between the widget and the board. Is it feasible to have D & D between different graphics views.

wysota
19th December 2009, 20:08
Yes, it is.

mikey
19th December 2009, 20:48
Ok, then how do I implement D&D between two graphicsviews, one atop a qwidget and the second on a graphicsscene ?

wysota
19th December 2009, 21:00
Make one of them accept mime types of drags performed by the other one, as usual.