Hey there,

One of my widget is emiting a "deleteMe" signal on the mouse release event.

I've come up to this to avoid the "do not delete an object in his event" Qt warning,

Qt Code:
  1. //=============================================================================
  2. //=============================================================================
  3.  
  4. /* virtual */ void ZeContactWidget::mouseReleaseEvent(QMouseEvent * event)
  5. {
  6. QTimer::singleShot(1, this, SLOT(onEmitClick()));
  7. }
To copy to clipboard, switch view to plain text mode 

but I'm not sure that the proper way to do it, even if not crashing :S.
Do I have to call deleteLater() to delete that widget ?

Thanks.