How do I fire a MouseMove Event from inside a slot?? Meaning

Qt Code:
  1. void slotOnPasteButton(){
  2. if( ! computePasteRect() ){ //Gives the reactangular area for object to be pasted
  3. return;
  4. }
  5. // fire or call MouseMove Event
  6. // If the <esc> key is pressed, cancel the pasting operation which I need to check like this
  7. if ( e->type() == QEvent::KeyPress && ((QKeyEvent *)e)->key() == Qt::Key_Escape ) {
  8. //user cancelled paste operation
  9. //clear pasteRect
  10. }
  11. // We have now returned from the mouseMoveEvent, with a new position for the
  12. // bounding box of the objects to be pasted
  13. if( !pasteRect.isNull() )
  14. //do stuffs to paste the object at new position
  15.  
  16. }
To copy to clipboard, switch view to plain text mode