Hey guys,

I want to emulate a "real button click" on a QGraphicsItem:
The click is triggered when mouse release + cursor inside.

Anyone could fill my blank here:

Qt Code:
  1. void qwListGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent * event)
  2. {
  3. Q_D(qwListGraphicsItem);
  4.  
  5. if (/* cursor is not over the QGraphicsItem */ == true) return;
  6.  
  7. // Do something...
  8. }
To copy to clipboard, switch view to plain text mode 

Thanks.