set position in viewport widget not working

If the element / control / widget is within a container, you might have issues moving it; because the container forbids it from moving.