QR 115 then FR 5316 at Fiumicino
Doha → Rome → Madrid
Timetable, Rome time
06:45QR 115 from Doha at the gate
05:45FR 5316 to Madrid leaves the gate
23 h apart on the timetable, overnight
FR 5316 leaves 23 h after QR 115 arrives on the timetable: more than half a day, so not a connection we count.