|  | Home · Overviews · Examples |

# QGraphicsSceneDragDropEvent Class Reference
[com.trolltech.qt.gui module]

The `QGraphicsSceneDragDropEvent` class provides events for drag and drop in the graphics view framework. More...

Inherits `QGraphicsSceneEvent`.

## Detailed Description

The `QGraphicsSceneDragDropEvent` class provides events for drag and drop in the graphics view framework.

`QGraphicsView` inherits the drag and drop functionality provided by `QWidget`. When it receives a drag and drop event, it translates it to a `QGraphicsSceneDragDropEvent`.

`QGraphicsSceneDragDropEvent` stores events of type `GraphicsSceneDragEnter`, `GraphicsSceneDragLeave`, `GraphicsSceneDragMove`, or `GraphicsSceneDrop`.

`QGraphicsSceneDragDropEvent` contains the position of the mouse cursor in both item, scene, and screen coordinates; this can be retrieved with `pos`, `scenePos`, and `screenPos`.

The scene sends the event to the first `QGraphicsItem` under the mouse cursor that accepts drops; a graphics item is set to accept drops with setAcceptDrops().