As per Revenu Quebec: If you are a resident of another province or a territory of Canada on December 31 of a particular year, you will have to file an income tax return and pay any income tax on your worldwide income from all sources for the entire year there.
Note that there may be situations in which you have to file an income tax return in Québec even though you are not a Québec resident for tax purposes. For more information, see Obligations of Non-Residents with Regard to Québec Income Tax.
Thank you for choosing TurboTax.