Quebec TP1 and principal residence

I have completed form T2091 for the federal Principal Residence Exemption. The numbers don’t flow into the Quebec form TP274. I try to enter them manually but it shows as an override. How do I get them to flow automatically?

If the home was designated as the principle residence for all years owned, the instructions on page 4 say:

There is no capital gain if the designation applies to all the years
during which you owned or co-owned the property or to the year in
which a real servitude encumbering the property was established. In
such a case, complete only Part 1 and Part 2 of the form.

Thank you.