PDA

View Full Version : MouseEvent in QGraphics Scene?



fanatos
9th September 2010, 15:47
void DragDropImage::mousePressEvent(QGraphicsSceneMouse Event *event)
{
// how can i find out witch item was pressed on the QGraphicsScene ?
}

Thanks.

tbscope
9th September 2010, 17:39
The event has a point. You can use that point to get the item from the scene via itemAt(...)