Its not moving the pointer that is making it work. It is the QRect that I created to test. If I comment out
the rect it all goes back to not moving and only being created at 0,0