There is no way to do this. You can forge mouseReleaseEvent() but when you release the mouse, another mouse event will be posted. mouseMoveEvent() will also continue being called as you drag the mouse. Maybe you should say what you need this functionality for?