c++ - Programatically fire a QMouseEvent and Keyboard Event given only global x,y coordinate -


on machinea mousemove events trapped screen machine b's viewerwidget. , mouseclick events machineb's widget carried machinea's screen. keyboardevent of machineb carried machinea. dont know on widget events triggered. know global x, y coordinates. keyboardevents.
questions are:

  1. how trap/fire mousemove or mouseclick events from/to desktopwidget ?
  2. how trap/fire keyboard events from/to desktopwidget ?

something similar should trick.

qmouseevent* event = new qmouseevent( qevent::mousebuttonpress, qpoint( x, y ), button, modifiers); qapplication::postevent( widget, event ); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -