There is no such restriction. If you exit Qatar on visit visa, you can re-enter Qatar with permanent visa any time. You can even change from visit visa to Permanent without leaving Qatar by paying some extra charge.