However I would suggest to make a copy of qAppPriv->appTouchPoints, then make sure that touch points are removed from it, and only then call translateRawTouch on the saved copy. This is to ensure that if translateRawTouch re-enters the event loop, we don't get into and inconsistent touch points state.
Thanks for fixing it Chase!
However I would suggest to make a copy of qAppPriv- >appTouchPoints , then make sure that touch points are removed from it, and only then call translateRawTouch on the saved copy. This is to ensure that if translateRawTouch re-enters the event loop, we don't get into and inconsistent touch points state.