i need a function in Qt to do the work of pressing right click on the mouse. is there any function for this?
i need a function in Qt to do the work of pressing right click on the mouse. is there any function for this?
You make a QMouseEvent instance, set its parameters appropriately, then call QCoreApplication::sendEvent() or QCoreApplication::postEvent(). Note the difference in how the QEvent argument to each of these methods is created.
Bookmarks