Dear All,
If your spouse came to Qatar on "on-arrival visa"., you can apply for Visit Visa even though the person is in Qatar.

Now its confirmed you can apply for visit visa and wait for same getting approved. once approved spouse need to exit qatar and come back on visit visa.