View Full Version : what is the equal function of pressing right click
KT_HG
30th January 2016, 16:46
i need a function in Qt to do the work of pressing right click on the mouse. is there any function for this?
d_stranz
30th January 2016, 17:25
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.