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:
- how trap/fire mousemove or mouseclick events from/to desktopwidget ?
- 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
Post a Comment