Quebec requires you to be in Quebec for at least 183 days per year. Ontario is similar, only that you have to be in Ontario for at least 153 instead of 183 days per year.
Quebec RAMQ has something called prolonged absence. For example, students studying abroad, people working for the...