Hard to tell.
Could be a bug in the touch input driver or further up in the stack.
Since you have QtWidgets application my guess is that you are using one of the window system stacks, i.e. X11 or Wayland.
In case of X11 you could try running the "xev" tool and see which events it gets from the X-Server.
Cheers,
_
Bookmarks