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

delphi - ESC/P programming! -

Cursor error with postgresql, pgpool and php -

c++ - error: use of deleted function -